mysql 建表 问题 求解答 为什么不能创建表
SQL 查询:
DROP TABLE IF EXISTS 'chat'CREAT TABLE 'chat'(
'id'int( 11 ) NOT NULL AUTO_INCREMENT ,
'author'varchar( 60 ) default NULL ,
'reader'varchar( 60 ) default NULL ,
'time_created'datetime NOT NULL default '0000-00-00 00:00:00',
'text'varchar( 100 ) default NULL ,
'color'varchar( 20 ) NOT NULL default 'black',
PRIMARY KEY ( 'id' ) );
MySQL 返回:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your
MySQL server version for the right syntax to use near ''chat'
CREAT TABLE 'chat' (
'id' int(11) NOT NULL auto_increment,
' at line 1
追问:可是改成了 CREATE 还是 不能创建 chat表