我想打一个表中的phpmyadmin,我使用的SQL命令为语法错误CREATE TABLE
CREATE TABLE userdetail(
detailid INT(255) UNSIGNED AUTO_INCREMENT PRIMARY,
name varchar(255) NOT NULL,
address text,
phone varchar(13) NOT NULL,
email_id varchar(255),
userId int(20) NOT NULL,
reg_date TIMESTAMP
)
我收到此错误:
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 ' name varchar(255) NOT NULL, address text, phone varchar(13) NOT ' at line 2
'PRIMARY KEY'并不仅仅是'PRIMARY' –