0
CREATE TABLE IF NOT EXISTS `users` ( 
`id` int(11) NOT NULL auto_increment, 
`username` varchar(32) NOT NULL, 
`password` varchar(32) NOT NULL, 
`online` int(20) NOT NULL default '0′, 
`email` varchar(100) NOT NULL, 
`active` int(1) NOT NULL default '0′, 
`rtime` int(20) NOT NULL default '0′, 
PRIMARY KEY (`id`) 
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

这是原始的 phpmyadmin 错误消息,当我输入上面显示的代码 sql 创建表时:

#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 
'`password` varchar (32) NULL, `On-line` int NOT (20) NULL default '0 ', NON ' 
at line 4

我想了解这段代码应该如何正确编写以及有什么问题!

4

2 回答 2

0
于 2012-11-20T15:56:21.077 回答
0
于 2012-11-20T15:54:16.663 回答