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,
不是;應該是,

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)
);
添加回答
舉報
0/150
提交
取消