sql server 2005 报错误 '=' 附近有语法错误。
代码如下:/*MySQLDataTransferSourceHost:localhostSourceDatabase:db_jiuyeTargetHost:localho...
代码如下:
/*MySQL Data TransferSource Host: localhostSource Database: db_jiuyeTarget Host: localhostTarget Database: db_jiuyeDate: 2012-11-30 19:32:33*/
SET FOREIGN_KEY_CHECKS=0;-- ------------------------------ Table structure for t_admin-- ----------------------------CREATE TABLE `t_admin` ( `userId` int(11) NOT NULL, `userName` varchar(55) default NULL, `userPw` varchar(55) default NULL, PRIMARY KEY (`userId`)) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ------------------------------ Table structure for t_doc-- ----------------------------CREATE TABLE `t_doc` ( `id` int(11) NOT NULL, `mingcheng` varchar(55) default NULL, `fujian` varchar(55) default NULL, `fujianYuanshiming` varchar(50) default NULL, `del` varchar(50) default NULL, PRIMARY KEY (`id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ------------------------------ Table structure for t_gonggao-- ----------------------------CREATE TABLE `t_gonggao` ( `gonggao_id` int(11) NOT NULL, `gonggao_title` varchar(50) default NULL, `gonggao_content` varchar(4000) default NULL, `gonggao_data` varchar(50) default NULL, PRIMARY KEY (`gonggao_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ------------------------------ Table structure for t_liuyan-- ----------------------------CREATE TABLE `t_liuyan` ( `liuyan_id` int(11) NOT NULL, `liuyan_title` varchar(66) default NULL, `liuyan_content` varchar(4000) default NULL, `liuyan_date` varchar(250) default NULL, `liuyan_user` varchar(50) default NULL, PRIMARY KEY (`liuyan_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ------------------------------ Table structure for t_news-- ----------------------------CREATE TABLE `t_news` ( `news_id` int(11) NOT NULL, `news_title` varchar(55) default NULL, `news_content` varchar(4000) default NULL, `news_date` varchar(50) default NULL, PRIMARY KEY (`news_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8;
报如下错误:
消息 102,级别 15,状态 1,第 10 行'=' 附近有语法错误。 展开
/*MySQL Data TransferSource Host: localhostSource Database: db_jiuyeTarget Host: localhostTarget Database: db_jiuyeDate: 2012-11-30 19:32:33*/
SET FOREIGN_KEY_CHECKS=0;-- ------------------------------ Table structure for t_admin-- ----------------------------CREATE TABLE `t_admin` ( `userId` int(11) NOT NULL, `userName` varchar(55) default NULL, `userPw` varchar(55) default NULL, PRIMARY KEY (`userId`)) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ------------------------------ Table structure for t_doc-- ----------------------------CREATE TABLE `t_doc` ( `id` int(11) NOT NULL, `mingcheng` varchar(55) default NULL, `fujian` varchar(55) default NULL, `fujianYuanshiming` varchar(50) default NULL, `del` varchar(50) default NULL, PRIMARY KEY (`id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ------------------------------ Table structure for t_gonggao-- ----------------------------CREATE TABLE `t_gonggao` ( `gonggao_id` int(11) NOT NULL, `gonggao_title` varchar(50) default NULL, `gonggao_content` varchar(4000) default NULL, `gonggao_data` varchar(50) default NULL, PRIMARY KEY (`gonggao_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ------------------------------ Table structure for t_liuyan-- ----------------------------CREATE TABLE `t_liuyan` ( `liuyan_id` int(11) NOT NULL, `liuyan_title` varchar(66) default NULL, `liuyan_content` varchar(4000) default NULL, `liuyan_date` varchar(250) default NULL, `liuyan_user` varchar(50) default NULL, PRIMARY KEY (`liuyan_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ------------------------------ Table structure for t_news-- ----------------------------CREATE TABLE `t_news` ( `news_id` int(11) NOT NULL, `news_title` varchar(55) default NULL, `news_content` varchar(4000) default NULL, `news_date` varchar(50) default NULL, PRIMARY KEY (`news_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8;
报如下错误:
消息 102,级别 15,状态 1,第 10 行'=' 附近有语法错误。 展开
展开全部
。。。你这是mysql的语法吧,,,
没仔细看,你说的那个错误,
是SET FOREIGN_KEY_CHECKS=0; 你这个取消外键约束的问题,
还有ENGINE=InnoDB DEFAULT CHARSET=utf8 这些,,,都去掉
sqlserver没这个语法,这个是mysql特定的,,,去掉,,,,
还有,我看你,例如 `liuyan_id` 这样的,都加个了``,这个也是mysql里面的语法,,,sqlserver系统关键字段用的是[]括起来,,,
其他没看了,,,你再改改吧
没仔细看,你说的那个错误,
是SET FOREIGN_KEY_CHECKS=0; 你这个取消外键约束的问题,
还有ENGINE=InnoDB DEFAULT CHARSET=utf8 这些,,,都去掉
sqlserver没这个语法,这个是mysql特定的,,,去掉,,,,
还有,我看你,例如 `liuyan_id` 这样的,都加个了``,这个也是mysql里面的语法,,,sqlserver系统关键字段用的是[]括起来,,,
其他没看了,,,你再改改吧
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询