Home > Database > Mysql Tutorial > [新手上路]为什么同样一个sql文件 导入mysql毫无问题但是导入sql2005各种报语法错误

[新手上路]为什么同样一个sql文件 导入mysql毫无问题但是导入sql2005各种报语法错误

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 09:44:37
Original
1268 people have browsed it

sql2005mysqlsql语法错误

DROP TABLE IF EXISTS messages;
CREATE TABLE messages (
id int(11) NOT NULL AUTO_INCREMENT,
saver varchar(255) DEFAULT NULL,
savetime varchar(255) DEFAULT NULL,
content varchar(255) DEFAULT NULL,
recontent varchar(255) DEFAULT NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;

比方就截取了这一段

mysql能正常执行

sql2005就报错

消息 156,级别 15,状态 1,第 1 行
关键字 'IF' 附近有语法错误。

一头雾水。。。。

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template