Heim > Artikel > Backend-Entwicklung > 传智播客 韩顺平 php视频教程 札记心得 zend.framework.第15讲.综合应用-购物车1
传智播客 韩顺平 php视频教程 笔记心得 zend.framework.第15讲.综合应用-购物车1
create table users
(
id int primary key,
name varchar(64) not null default '',
pwd char(32) not null default '',
email varchar(128) not null default '',
tel varchar(32) not null default '',
grade tinyint unsigned not null default 1
)
insert into users values(100,'刘德华',md5(123456),'aligoods@qq
insert into users values(101,'张学友',md5(123456),'158393237@q
create table mycart
(
id int primary key auto_increment,
userid int,
bookid int,
nums int unsigned,
carDate int unsigned ,
foreign key(userid) references users(id) ,
foreign key(bookid) references book(id)
)