javaweb 实战_1
购物车项目 Primary
SQL语句
product
create table product ( id int(11) default null, name varchar(50) default null, price float default null )engine=innodb default charset=utf8;
插入数据
insert into product values(1,'黑色的丝袜',500); insert into product values(2,'充气娃娃',2500); insert into product values(3,'皮鞭',180); insert into product values(4,'蜡烛',0.20);
user
create table user ( id int, name varchar(50), password varchar(50) )Engine=InnoDB default charset = utf8;
插入数据
insert into user values(1, "root", "admin");
order_
create table order_( id int auto_increment, uid int, primary key(id) );
orderitem
create table orderitem( id int auto_increment, pid int, num int, oid int, primary key(id) );