为了账号安全,请及时绑定邮箱和手机立即绑定

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

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

qq_大寒_2 2016-07-01 20:46:18
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) };
查看完整描述

2 回答

?
奔跑在HZ

TA贡献14条经验 获得超6个赞


id int not null auto_increment;    这行改成 id int not null auto_increment,

不是;应该是,

查看完整回答
反对 回复 2016-07-01
?
qq_大寒_2

TA贡献173条经验 获得超185个赞

解决了。。

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)



);


查看完整回答
反对 回复 2016-07-01
  • 2 回答
  • 0 关注
  • 1687 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号