当前位置:数据库 > MySQL >>

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表
Oracle
MySQL
Access
SQLServer
DB2
Excel
SQLite
SYBASE
Postgres
如果你遇到数据库难题:
请访问www.zzzyk.com 试试
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,