sql语句报错,无法运行????

drop table if exists books;
create table books{
id int not null auto_increment;
bookname char(50) not null default '',
publisher char(80) not null default'',
author char(50) not null default'',
price double not null default 0.00,
ptime int not null default 0,
pic char(40) not null default,
detail text,
primary key(id)
};

http://img.mukewang.com/577665fc0001510a06620273.jpg

qq_大寒_2
浏览 1526回答 2
2回答

奔跑在HZ

id int not null auto_increment;    这行改成 id int not null auto_increment,不是;应该是,

qq_大寒_2

解决了。。drop table if exists books;create table books( id int not null  auto_increment,bookname char(50) not null default '',publisher char(80) not null default'',author char(50) not null default'',price double not null default 0.00,ptime int not null default 0,pic char(40) not null default '',detail text,primary key(id) );
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

MySQL