-
use
master
-
go
-
if
exists(
select*
from sysdatabases
where
name=
'EasyBuy')
-
drop
database EasyBuy
-
create
database EasyBuy
-
go
-
use EasyBuy
-
go
-
-
create
table
users
--用户信息表
-
(
-
userid
int
identity(
1,
1) primary
key,
--用户ID
-
username
varchar(
20)
not
null,
--用户的帐户名
-
password
varchar(
20)
not
null,
--用户密码
-
name
varchar(
10)
not
null,
--用户真实信息
-
question
varchar(
30),
--丢失密码问题
-
answer
varchar(
20),
--用户回答问题,用于找回密码
-
sex
varchar(
2)
not
null,
--用户性别
-
phone
varchar(
20)
not
null,
--用户的电话
-
email
varchar(
20),
--用户的电子邮件
-
address
varchar(
50),
--用户的地址
-
post
varchar(
10),
--用户所在地区的邮编编号
-
province
varchar(
10)
not
null,
--用户所在的省份
-
city
varchar(
10)
not
null,
--用户所在城市
-
remark
varchar(
50),
--备注
-
leave
int
not
null,
--用户级别(1为后台用户,2为前台用户)
-
)
-
-
create
table aclass
--产品大类表
-
(
-
aclassid
int
identity(
1,
1) primary
key,
--产品大类的ID
-
name
varchar(
20)
not
null,
--产品大类的名称
-
)
-
-
create
table bclass
--产品小类表
-
(
-
bclassid
int
identity(
1,
1) primary
key,
--产品小类的ID
-
aclassid
int foreign
key
references aclass(aclassid),
--关联大类的aclassid
-
name
varchar(
20)
not
null,
--产品小类的名称
-
)
-
-
create
table poduct
--产品信息表
-
(
-
productid
int
identity(
1,
1) primary
key,
--产品信息的ID
-
bclassid
int foreign
key
references bclass(bclassid),
--关联小类的bclassid
-
name
varchar(
150)
not
null,
--产品信息的名称
-
brand
varchar(
50)
not
null,
--产品品牌
-
price money
not
null,
--市场价格
-
memberprice money
not
null,
--本站价格
-
differprice money
not
null,
--节省差价
-
picture
varchar(
150) ,
--产品图片
-
time datetime
not
null,
--添加时间
-
stock
int,
--产品库存
-
hit
int,
--产品点击数
-
detail
varchar(
3000),
--产品描述
-
)
-
-
create
table news
--新闻表
-
(
-
id
int
identity(
1,
1) primary
key,
--新闻ID
-
title
varchar(
30)
not
null,
--新闻标题
-
content
text
not
null,
--新闻内容
-
time datetime
not
null,
--新闻添加时间
-
type
varchar(
10)
not
null,
--新闻类型
-
)
-
-
create
table guest
--评论表
-
(
-
guestid
int
identity(
1,
1) primary
key,
--ID
-
name
varchar(
20)
not
null,
--昵称
-
content
text ,
--留言内容
-
productid
int foreign
key
references poduct(productid),
--关联产品信息的主键
-
time datetime
not
null,
--留言时间
-
ip
varchar(
20)
not
null,
--用户的IP
-
)
-
-
create
table orders
--订单信息表
-
(
-
orderid
int
identity(
1,
1) primary
key,
--ID
-
userid
int foreign
key
references
users(userid),
--关联用户表的主键
-
sumprice money
not
null,
--总价格
-
orderdate datetime
not
null,
--订单日期
-
linkman
varchar(
10)
not
null,
--联系人
-
email
varchar(
30)
not
null,
--联系人email
-
phone
varchar(
15)
not
null,
--联系人的电话
-
postalcode
varchar(
10)
not
null,
--送货处邮编
-
address
varchar(
300)
not
null,
--送货地址
-
result
varchar(
10)
not
null,
--处理结果
-
remark
text ,
--备注
-
songhuoqixian
int
not
null,
--送货期限
-
songhuofangshi
varchar(
20)
not
null,
--送货方式
-
fukuanfangshi
varchar(
20)
not
null,
--付款方式
-
error
varchar(
200) ,
--意外说明
-
)
-
-
create
table orderlist
--订单列表
-
(
-
orderlistid
int
identity(
1,
1) primary
key,
--ID
-
orderid
int foreign
key
references orders(orderid),
--订单信息表的主键
-
productid
int foreign
key
references poduct(productid),
--关联产品的主键
-
quantity
int
not
null,
--所定的数目
-
unitcost money
not
null,
--单价
-
productname
varchar(
150)
not
null,
--产品名称
-
)
-
-
create
table reply
--回复表
-
(
-
replyid
int
identity(
1,
1) primary
key,
-- 主键
-
content
text
not
null,
--回复内容
-
time datetime
not
null,
--回复时间
-
guestid
int foreign
key
references guest(guestid)
--外键
-
)
-
-
create
table shoppingcar
--购物车表
-
(
-
id
int primary
key
identity,
--主键
-
userid
int
references
users(userid),
--外键 用户编号
-
productid
int
references poduct(productid),
--外键 商品编号
-
num
int,
--订购商品数量
-
)
-
go
-
-
-----用户数据
-
--后台用户
-
insert
into
users(username,
password,
name,question,answer,sex,phone,email,address,post,province,city,remark,leave)
-
values(
'admin',
'admin',
'tom',
'',
'',
'男',
'13576827625',
'tomtom@live.cn',
'河南郑州市金水区金水路27号',
'475000',
'河南省',
'郑州',
'',
1)
-
insert
into
users(username,
password,
name,question,answer,sex,phone,email,address,post,province,city,remark,leave)
-
values(
'sa',
'sa',
'lisa',
'',
'',
'女',
'15225186360',
'1181489599@qq.com',
'河南郑州市金水区金水路27号',
'475000',
'河南省',
'郑州',
'',
1)
-
-
--前台用户
-
insert
into
users(username,
password,
name,question,answer,sex,phone,email,address,post,province,city,remark,leave)
-
values(
'aaaaaa',
'aaaaaa',
'aaa111',
'',
'',
'男',
'13534879654',
'jackjack@live.cn',
'河南郑州市二七区南阳路35号',
'475000',
'河南省',
'郑州市',
'',
2)
-
insert
into
users(username,
password,
name,question,answer,sex,phone,email,address,post,province,city,remark,leave)
-
values(
'bbbbbb',
'bbbbbb',
'bbb222',
'',
'',
'女',
'13546272341',
'梦璃@live.cn',
'河南开封市龙亭区10号',
'475100',
'河南省',
'开封市',
'',
2)
-
insert
into
users(username,
password,
name,question,answer,sex,phone,email,address,post,province,city,remark,leave)
-
values(
'cccccc',
'cccccc',
'ccc333',
'',
'',
'男',
'13576548971',
'shishu@live.cn',
'河南南阳市南阳路25号',
'475200',
'河南省',
'南阳市',
'',
2)
-
insert
into
users(username,
password,
name,question,answer,sex,phone,email,address,post,province,city,remark,leave)
-
values(
'dddddd',
'dddddd',
'ddd444',
'',
'',
'女',
'13512345678',
'xiaomei@live.cn',
'广东省广州市沈滇区13号',
'3461200',
'广东省',
'广州市',
'',
2)
-
-
insert
into
users(username,
password,
name,question,answer,sex,phone,email,address,post,province,city,remark,leave)
-
values(
'aaa',
'aaa',
'aaa111',
'',
'',
'男',
'13534879654',
'jackjack@live.cn',
'河南郑州市二七区南阳路35号',
'475000',
'河南省',
'郑州市',
'',
2)
-
insert
into
users(username,
password,
name,question,answer,sex,phone,email,address,post,province,city,remark,leave)
-
values(
'bbb',
'bbb',
'bbb222',
'',
'',
'女',
'13546272341',
'梦璃@live.cn',
'河南开封市龙亭区10号',
'475100',
'河南省',
'开封市',
'',
2)
-
insert
into
users(username,
password,
name,question,answer,sex,phone,email,address,post,province,city,remark,leave)
-
values(
'ccc',
'ccc',
'ccc333',
'',
'',
'男',
'13576548971',
'shishu@live.cn',
'河南南阳市南阳路25号',
'475200',
'河南省',
'南阳市',
'',
2)
-
insert
into
users(username,
password,
name,question,answer,sex,phone,email,address,post,province,city,remark,leave)
-
values(
'ddd',
'ddd',
'ddd444',
'',
'',
'女',
'13512345678',
'xiaomei@live.cn',
'广东省广州市沈滇区13号',
'3461200',
'广东省',
'广州市',
'',
2)
-
-
-
-----产品数据(大类)
-
insert
into aclass(
name)
values(
'电脑配件')
-
insert
into aclass(
name)
values(
'办公设备')
-
insert
into aclass(
name)
values(
'手机')
-
insert
into aclass(
name)
values(
'数码')
-
insert
into aclass(
name)
values(
'电脑整机')
-
-
-
-----产品数据(小类)
-
--电脑配件
-
insert
into bclass(aclassid,
name)
values(
1,
'耳机')
-
insert
into bclass(aclassid,
name)
values(
1,
'移动硬盘')
-
insert
into bclass(aclassid,
name)
values(
1,
'CPU')
-
insert
into bclass(aclassid,
name)
values(
1,
'主板')
-
insert
into bclass(aclassid,
name)
values(
1,
'内存')
-
insert
into bclass(aclassid,
name)
values(
1,
' 硬盘')
-
insert
into bclass(aclassid,
name)
values(
1,
'显卡')
-
insert
into bclass(aclassid,
name)
values(
1,
'显示器')
-
insert
into bclass(aclassid,
name)
values(
1,
'光驱')
-
insert
into bclass(aclassid,
name)
values(
1,
'声卡')
-
insert
into bclass(aclassid,
name)
values(
1,
'键盘')
-
insert
into bclass(aclassid,
name)
values(
1,
'鼠标')
-
insert
into bclass(aclassid,
name)
values(
1,
'键鼠套装')
-
insert
into bclass(aclassid,
name)
values(
1,
'机箱')
-
insert
into bclass(aclassid,
name)
values(
1,
'电源')
-
insert
into bclass(aclassid,
name)
values(
1,
'散热器')
-
insert
into bclass(aclassid,
name)
values(
1,
'音箱')
-
-
--办公设备
-
insert
into bclass(aclassid,
name)
values(
2,
'打印机')
-
insert
into bclass(aclassid,
name)
values(
2,
'传真机')
-
insert
into bclass(aclassid,
name)
values(
2,
'复印机')
-
insert
into bclass(aclassid,
name)
values(
2,
'电脑')
-
insert
into bclass(aclassid,
name)
values(
2,
'一体机')
-
insert
into bclass(aclassid,
name)
values(
2,
'办公桌椅')
-
insert
into bclass(aclassid,
name)
values(
2,
'电话')
-
insert
into bclass(aclassid,
name)
values(
2,
'文件柜')
-
-
--手机
-
insert
into bclass(aclassid,
name)
values(
3,
'手机')
-
insert
into bclass(aclassid,
name)
values(
3,
'对讲机')
-
-
--数码
-
insert
into bclass(aclassid,
name)
values(
4,
'数码相机')
-
insert
into bclass(aclassid,
name)
values(
4,
'单电/微单相机')
-
insert
into bclass(aclassid,
name)
values(
4,
'单反相机')
-
insert
into bclass(aclassid,
name)
values(
4,
'摄像机')
-
insert
into bclass(aclassid,
name)
values(
4,
'云台相机')
-
insert
into bclass(aclassid,
name)
values(
4,
' MP3/MP4')
-
insert
into bclass(aclassid,
name)
values(
4,
'MID')
-
insert
into bclass(aclassid,
name)
values(
4,
'耳机/耳麦')
-
insert
into bclass(aclassid,
name)
values(
4,
'音箱')
-
insert
into bclass(aclassid,
name)
values(
4,
'高清播放器')
-
insert
into bclass(aclassid,
name)
values(
4,
'电子书')
-
insert
into bclass(aclassid,
name)
values(
4,
'电子词典')
-
insert
into bclass(aclassid,
name)
values(
4,
'录音笔')
-
insert
into bclass(aclassid,
name)
values(
4,
'麦克风')
-
insert
into bclass(aclassid,
name)
values(
4,
'专业音频')
-
insert
into bclass(aclassid,
name)
values(
4,
'电子教育')
-
-
--电脑整机
-
insert
into bclass(aclassid,
name)
values(
5,
'笔记本')
-
insert
into bclass(aclassid,
name)
values(
5,
'台式机')
-
insert
into bclass(aclassid,
name)
values(
5,
'平板')
-
-
-
-----产品信息表
-
--耳机(飞利浦)
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
1,
'飞利浦(PHILIPS)Style系列头戴耳机SHL5002(绿灰色)',
'飞利浦',
259.00,
145.00,
114.00,
'191002.jpg,1995951.jpg,1995956.jpg',
GETDATE(),
100,
14211,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
1,
'飞利浦(PHILIPS) SHL8807 头戴式耳机 强劲的低音,个性化定制耳罩 iPhone专属 白色',
'飞利浦',
399.00,
240.00,
159.00,
'181862.jpg,181867.jpg',
GETDATE(),
100,
1411,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
1,
'飞利浦(PHILIPS) SHE3575OP/10 手机耳机 外形小巧,音效震撼 专为手机设计 红橙色',
'飞利浦',
149.00,
85.00,
64.00,
'1818157.jpg,181822.jpg',
GETDATE(),
100,
1111,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
1,
'飞利浦(PHILIPS) SHE3575YB/10 手机耳机 外形小巧,音效震撼 专为手机设计 黄色/蓝色',
'飞利浦',
149.00,
85.00,
64.00,
'1817580.jpg,1817588.jpg',
GETDATE(),
100,
555,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
1,
'飞利浦(PHILIPS)SBCHL145/98 轻便头戴型耳机',
'飞利浦',
79.00,
45.00,
34.00,
'16174344.jpg,16174350.jpg',
GETDATE(),
100,
6666,
-
'进入耳中的音乐
-
30 毫米喇叭驱动器确保音效一流
-
低音节拍音孔可以优化控制气流,从而得到最佳声音效果
-
符合您的习惯和生活方式
-
超轻头带让您感觉更加舒适
-
随时准备好
-
1.0 米长的电缆是户外使用的理想长度
-
结实的头带可以延长耳机的使用寿命
-
耐用的软质耳挂使得连接非常灵活
-
')
-
-
--耳机(三星)
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
1,
'三星I9300 i9100 N7100 I9003 I9008L S5830 I9220耳机',
'三星',
100.00,
70.00,
30.00,
'T1WAlRXt4hXXXXXXXX_!!0-item_pic_jpg_310x310.jpg',
GETDATE(),
100,
3333,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
1,
'三星 I9100 I9220 I9103 I9188 I9250 I9308 N7100 I9300 耳机 原装有线耳机 线控耳机 可调节音量 (白色)',
'三星',
60.00,
20.00,
40.00,
'21OWgfgSXfL__SL500_.jpg',
GETDATE(),
100,
5565,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
1,
'三星 HM1900 W899 W799 W999 音乐 降噪 蓝牙耳机 原装正品 联保【绅士灰】',
'三星',
309.00,
209.00,
100.00,
'41f7V8aV3aL__SL500_.jpg',
GETDATE(),
100,
98587,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
1,
'飞利浦(PHILIPS) SHE3575YB/10 手机耳机 外形小巧,音效震撼 专为手机设计 黄色/蓝色',
'三星',
268.00,
216.00,
52.00,
'31v9rNZoh2L__SL500_.jpg,41Z9EhjELQL.jpg,41HwtboggCL.jpg,51yqTbtV9oL.jpg',
GETDATE(),
100,
7649,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
1,
'三星I9300 i9100 N7100 I9003 I9008L S5830 I9220耳机',
'三星',
100.00,
70.00,
30.00,
'T1WAlRXt4hXXXXXXXX_!!0-item_pic_jpg_310x310.jpg',
GETDATE(),
100,
3333,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
1,
'三星 I9100 I9220 I9103 I9188 I9250 I9308 N7100 I9300 耳机 原装有线耳机 线控耳机 可调节音量 (白色)',
'三星',
60.00,
20.00,
40.00,
'21OWgfgSXfL__SL500_.jpg',
GETDATE(),
100,
5565,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
1,
'三星 HM1900 W899 W799 W999 音乐 降噪 蓝牙耳机 原装正品 联保【绅士灰】',
'三星',
309.00,
209.00,
100.00,
'41f7V8aV3aL__SL500_.jpg',
GETDATE(),
100,
98587,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
1,
'飞利浦(PHILIPS) SHE3575YB/10 手机耳机 外形小巧,音效震撼 专为手机设计 黄色/蓝色',
'三星',
268.00,
216.00,
52.00,
'31v9rNZoh2L__SL500_.jpg,41Z9EhjELQL.jpg,41HwtboggCL.jpg,51yqTbtV9oL.jpg',
GETDATE(),
100,
7649,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
1,
'三星I9300 i9100 N7100 I9003 I9008L S5830 I9220耳机',
'三星',
100.00,
70.00,
30.00,
'T1WAlRXt4hXXXXXXXX_!!0-item_pic_jpg_310x310.jpg',
GETDATE(),
100,
3333,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
1,
'三星 I9100 I9220 I9103 I9188 I9250 I9308 N7100 I9300 耳机 原装有线耳机 线控耳机 可调节音量 (白色)',
'三星',
60.00,
20.00,
40.00,
'21OWgfgSXfL__SL500_.jpg',
GETDATE(),
100,
5565,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
1,
'三星 HM1900 W899 W799 W999 音乐 降噪 蓝牙耳机 原装正品 联保【绅士灰】',
'三星',
309.00,
209.00,
100.00,
'41f7V8aV3aL__SL500_.jpg',
GETDATE(),
100,
98587,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
1,
'飞利浦(PHILIPS) SHE3575YB/10 手机耳机 外形小巧,音效震撼 专为手机设计 黄色/蓝色',
'三星',
268.00,
216.00,
52.00,
'31v9rNZoh2L__SL500_.jpg,41Z9EhjELQL.jpg,41HwtboggCL.jpg,51yqTbtV9oL.jpg',
GETDATE(),
100,
7649,
'')
-
-
-
--移动硬盘
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
2,
'西部数据(Western Digital)绿盘 1TB WD10EURX SATA 3Gb/s 64MB 台式机监控硬盘',
'西部数据',
769.00,
739.00,
30.00,
'1214304.jpg,12143012.jpg,12143020.jpg',
GETDATE(),
100,
765,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
2,
'西部数据(WD)My Book Elite系列3.5英寸外部硬盘1TB (黑色)(WDBAAH0010HCH)独有电子标签功能,轻松简单记忆容量!',
'西部数据',
1299.00,
999.00,
300.00,
'2315924.jpg,2315936.jpg,2315941.jpg,2315948.jpg',
GETDATE(),
100,
542,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
2,
'西部数据(WD)3.5移动硬盘(WDH1NC10000A/S)网络硬盘USB2.0+远程访问1TB',
'西部数据',
2999.00,
1499.00,
1500.00,
'2315031.jpg,2315037.jpg,2315054.jpg',
GETDATE(),
100,
655,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
2,
'西部数据(WD)My Passport Elite系列2.5英寸超便携硬盘500GB (红色)(WDBAAC5000ARD)',
'西部数据',
1299.00,
859.00,
440.00,
'231434.jpg,2314313.jpg,2314322.jpg',
GETDATE(),
100,
97,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
2,
'西部数据(WD)My Passport Essential系列2.5英寸第四代移动硬盘320GB (蓝色)',
'西部数据',
799.00,
549.00,
250.00,
'2313738.jpg,2313747.jpg,231383.jpg',
GETDATE(),
100,
653,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
2,
'西部数据(WD)Elements Portable 系列2.5英寸移动硬盘320GB (黑色)低价井喷啦!',
'西部数据',
599.00,
399.00,
200.00,
'2312365.jpg,23123614.jpg,23123621.jpg',
GETDATE(),
100,
9443,
'')
-
-
--CPU(AMD)
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
3,
'AMD FX-Series X8(FX系列八核)FX-8120 盒装CPU',
'AMD',
1309.00,
1259.00,
50.00,
'16165911.jpg,16165922.jpg,16165929.jpg,16165955.jpg',
GETDATE(),
100,
9443,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
3,
'AMD Athlon II X4(速龙II四核)651k 盒装CPU',
'AMD',
549.00,
519.00,
30.00,
'16151223.jpg,16152243.jpg,16152254.jpg',
GETDATE(),
100,
9443,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
3,
'AMD A-Serise X4 A6-3650盒装CPU',
'AMD',
699.00,
669.00,
30.00,
'7152850.jpg,715296.jpg,7152949.jpg',
GETDATE(),
100,
9443,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
3,
'AMD FX-Series X8(FX系列八核)FX-8120 盒装CPU',
'AMD',
1309.00,
1259.00,
50.00,
'16165911.jpg,16165922.jpg,16165929.jpg,16165955.jpg',
GETDATE(),
100,
9443,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
3,
'AMD Athlon II X4(速龙II四核)651k 盒装CPU',
'AMD',
549.00,
519.00,
30.00,
'16151223.jpg,16152243.jpg,16152254.jpg',
GETDATE(),
100,
9443,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
3,
'AMD A-Serise X4 A6-3650盒装CPU',
'AMD',
699.00,
669.00,
30.00,
'7152850.jpg,715296.jpg,7152949.jpg',
GETDATE(),
100,
9443,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
3,
'AMD FX-Series X8(FX系列八核)FX-8120 盒装CPU',
'AMD',
1309.00,
1259.00,
50.00,
'16165911.jpg,16165922.jpg,16165929.jpg,16165955.jpg',
GETDATE(),
100,
9443,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
3,
'AMD Athlon II X4(速龙II四核)651k 盒装CPU',
'AMD',
549.00,
519.00,
30.00,
'16151223.jpg,16152243.jpg,16152254.jpg',
GETDATE(),
100,
9443,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
3,
'AMD A-Serise X4 A6-3650盒装CPU',
'AMD',
699.00,
669.00,
30.00,
'7152850.jpg,715296.jpg,7152949.jpg',
GETDATE(),
100,
9443,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
3,
'AMD FX-Series X8(FX系列八核)FX-8120 盒装CPU',
'AMD',
1309.00,
1259.00,
50.00,
'16165911.jpg,16165922.jpg,16165929.jpg,16165955.jpg',
GETDATE(),
100,
9443,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
3,
'AMD Athlon II X4(速龙II四核)651k 盒装CPU',
'AMD',
549.00,
519.00,
30.00,
'16151223.jpg,16152243.jpg,16152254.jpg',
GETDATE(),
100,
9443,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
3,
'AMD A-Serise X4 A6-3650盒装CPU',
'AMD',
699.00,
669.00,
30.00,
'7152850.jpg,715296.jpg,7152949.jpg',
GETDATE(),
100,
9443,
'')
-
-
--CPU(Intel)
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
3,
'英特尔(Intel)32纳米 酷睿i7 四核处理器 i7 2600K盒装CPU',
'Intel',
2099.00,
2039.00,
60.00,
'5154140.jpg,5154148.jpg,5154155.jpg',
GETDATE(),
100,
9443,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
3,
'英特尔(Intel)32纳米 酷睿i5 四核处理器 i5 2500盒装CPU ',
'Intel',
1479.00,
1439.00,
40.00,
'5152623.jpg,5152633.jpg,5152645.jpg',
GETDATE(),
100,
9443,
'
-
32nm制程的全新微架构,造就第二代Intel 酷睿处理器家族
-
• 全集成的台式机微处理器方案
-
• 更卓越的处理性能,更好的媒体和计算性能
-
-
革命性的微架构
-
– Intel AVX 加速浮点密集型应用
-
– 优化的Intel睿频加速技术
-
|改进的图形架构
-
-新一代的多媒体功能,功耗管理技术和3D性能
-
-图形核心与CPU核心共享LLC 缓存,减少对系统内存的依赖,提升图形数据处理带宽、降低延迟
-
下一代供电控制单元(PCU)
-
CPU核心和图形核心之间智能供电共享,优化性能
-
-
4核/4重多任务处理
-
英特尔睿频加速技术2.0-依据负载轻重,自动变速执行
-
英特尔核芯显卡2000
-
英特尔智能高速缓存-CPU内核间高效的数据共享
-
集成内存控制器-更快的内存访问速度
-
支持双通道DDR3内存-更大的内存带宽
-
')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
3,
'英特尔(Intel)22纳米 酷睿i5 四核处理器 i5 3450盒装CPU',
'Intel',
1379.00,
1359.00,
20.00,
'72615436.jpg,26154824.jpg,26154850.jpg',
GETDATE(),
100,
9443,
'
-
根据intel 的 TICK-TOCK策略,2012将是intel 的工艺年,因此Ivy Bridge处理器将采用22nm新工艺制造,intel 最新发布的3D晶体
-
管技术也将和22nm工艺完美结合。但内核架构方面与32nm的Sandy Bridge相比不会有太大的变化。从目前获取的资料来看也确实如此,
-
在内核架构上Ivy Bridge只是做一些细节上的增强和完善。
-
-
在性能方面,ivy bridge将比Sandy Bridge增强20%--30%,
-
-
集成显卡性能也有30%性能的提升。升级支持DirectX 11、OpenCL 1.1标准,同时支持HDMI 1.4输出和三台独立显示器;
-
-
通讯总线方面:支持PCI-E 3.0标准规范;
-
-
内存方面:内存支持1.5V DDR3-1600和低压版1.35V DDR3L-1333,不过后者仅限移动平台
-
-
ivy bridge将搭配Panther Point 7系列芯片组,Panther Point 7相比于6系列变化也不是很多,不过还是有很令人兴奋的功能出现,
-
那就加入了对USB 3.0的原生支持,可提供最多四个接口,同时USB 2.0接口最多十四个,但注意其中四个是和USB 3.0共享的,
-
所以USB接口总数最多也是十四个。
-
')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
3,
'英特尔(Intel)32纳米 酷睿i7 四核处理器 i7 2600K盒装CPU',
'Intel',
2099.00,
2039.00,
60.00,
'5154140.jpg,5154148.jpg,5154155.jpg',
GETDATE(),
100,
9443,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
3,
'英特尔(Intel)32纳米 酷睿i5 四核处理器 i5 2500盒装CPU ',
'Intel',
1479.00,
1439.00,
40.00,
'5152623.jpg,5152633.jpg,5152645.jpg',
GETDATE(),
100,
9443,
'
-
32nm制程的全新微架构,造就第二代Intel 酷睿处理器家族
-
• 全集成的台式机微处理器方案
-
• 更卓越的处理性能,更好的媒体和计算性能
-
-
革命性的微架构
-
– Intel AVX 加速浮点密集型应用
-
– 优化的Intel睿频加速技术
-
|改进的图形架构
-
-新一代的多媒体功能,功耗管理技术和3D性能
-
-图形核心与CPU核心共享LLC 缓存,减少对系统内存的依赖,提升图形数据处理带宽、降低延迟
-
下一代供电控制单元(PCU)
-
CPU核心和图形核心之间智能供电共享,优化性能
-
-
4核/4重多任务处理
-
英特尔睿频加速技术2.0-依据负载轻重,自动变速执行
-
英特尔核芯显卡2000
-
英特尔智能高速缓存-CPU内核间高效的数据共享
-
集成内存控制器-更快的内存访问速度
-
支持双通道DDR3内存-更大的内存带宽
-
')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
3,
'英特尔(Intel)22纳米 酷睿i5 四核处理器 i5 3450盒装CPU',
'Intel',
1379.00,
1359.00,
20.00,
'72615436.jpg,26154824.jpg,26154850.jpg',
GETDATE(),
100,
9443,
'
-
根据intel 的 TICK-TOCK策略,2012将是intel 的工艺年,因此Ivy Bridge处理器将采用22nm新工艺制造,intel 最新发布的3D晶体
-
管技术也将和22nm工艺完美结合。但内核架构方面与32nm的Sandy Bridge相比不会有太大的变化。从目前获取的资料来看也确实如此,
-
在内核架构上Ivy Bridge只是做一些细节上的增强和完善。
-
-
在性能方面,ivy bridge将比Sandy Bridge增强20%--30%,
-
-
集成显卡性能也有30%性能的提升。升级支持DirectX 11、OpenCL 1.1标准,同时支持HDMI 1.4输出和三台独立显示器;
-
-
通讯总线方面:支持PCI-E 3.0标准规范;
-
-
内存方面:内存支持1.5V DDR3-1600和低压版1.35V DDR3L-1333,不过后者仅限移动平台
-
-
ivy bridge将搭配Panther Point 7系列芯片组,Panther Point 7相比于6系列变化也不是很多,不过还是有很令人兴奋的功能出现,
-
那就加入了对USB 3.0的原生支持,可提供最多四个接口,同时USB 2.0接口最多十四个,但注意其中四个是和USB 3.0共享的,
-
所以USB接口总数最多也是十四个。
-
')
-
-
-
-----电脑整机
-
--笔记本(宏基)
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
44,
'宏碁4250-E302G32Mnkk(买即送100元代金券)',
'宏基',
2799.00,
2650.00,
149.00,
'9102544.jpg,9102553.jpg,9102558.jpg',
GETDATE(),
100,
9443,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
44,
'宏碁(acer)AS4752G-32352G32Mnkk 14英寸笔记本电脑 骑士黑',
'宏基',
3799.00,
3599.00,
200.00,
'19113029.jpg,19113040.jpg,19113047.jpg,19113111.jpg,19113117.jpg',
GETDATE(),
100,
9443,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
44,
'宏碁(acer)AS4752G-52452G50Mnuu 14英寸笔记本电脑 玫瑰紫',
'宏基',
4399.00,
4299.00,
100.00,
'16192627.jpg,16192639.jpg,16192645.jpg,1619270.jpg',
GETDATE(),
100,
9443,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
44,
'宏碁(acer)AS4752G-52452G50Mncc 14英寸笔记本电脑 香槟金',
'宏基',
4399.00,
4199.00,
200.00,
'16192210.jpg,16192218.jpg,16192231.jpg,16192241.jpg',
GETDATE(),
100,
9443,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
44,
'宏碁(acer)AS4733Z-452G32Mnrr 14英寸笔记本电脑 靓丽红 ',
'宏基',
3460.00,
3099.00,
361.00,
'8165620.jpg,8165628.jpg,8165635.jpg,8165643.jpg,8165648.jpg',
GETDATE(),
100,
9443,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
44,
'宏碁(acer)AS4830TG-2412G64Mnbb 14英寸笔记本电脑',
'宏基',
6128.00,
5988.00,
140.00,
'815573.jpg,815579.jpg,8155715.jpg,8155721.jpg',
GETDATE(),
100,
9443,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
44,
'宏碁4250-E302G32Mnkk(买即送100元代金券)',
'宏基',
2799.00,
2650.00,
149.00,
'9102544.jpg,9102553.jpg,9102558.jpg',
GETDATE(),
100,
9443,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
44,
'宏碁(acer)AS4752G-32352G32Mnkk 14英寸笔记本电脑 骑士黑',
'宏基',
3799.00,
3599.00,
200.00,
'19113029.jpg,19113040.jpg,19113047.jpg,19113111.jpg,19113117.jpg',
GETDATE(),
100,
9443,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
44,
'宏碁(acer)AS4752G-52452G50Mnuu 14英寸笔记本电脑 玫瑰紫',
'宏基',
4399.00,
4299.00,
100.00,
'16192627.jpg,16192639.jpg,16192645.jpg,1619270.jpg',
GETDATE(),
100,
9443,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
44,
'宏碁(acer)AS4752G-52452G50Mncc 14英寸笔记本电脑 香槟金',
'宏基',
4399.00,
4199.00,
200.00,
'16192210.jpg,16192218.jpg,16192231.jpg,16192241.jpg',
GETDATE(),
100,
9443,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
44,
'宏碁(acer)AS4733Z-452G32Mnrr 14英寸笔记本电脑 靓丽红 ',
'宏基',
3460.00,
3099.00,
361.00,
'8165620.jpg,8165628.jpg,8165635.jpg,8165643.jpg,8165648.jpg',
GETDATE(),
100,
9443,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
44,
'宏碁(acer)AS4830TG-2412G64Mnbb 14英寸笔记本电脑',
'宏基',
6128.00,
5988.00,
140.00,
'815573.jpg,815579.jpg,8155715.jpg,8155721.jpg',
GETDATE(),
100,
9443,
'')
-
-
--笔记本(联想)
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
44,
'联想(Lenovo)G470AL 14.0英寸笔记本电脑(i5-2450M 2G 500G 1G独显 摄像头 DVD刻录 Linux)黑色',
'联想',
6128.00,
5988.00,
140.00,
'2013-04-24_130332.jpg,2013-04-24_130435.jpg,2013-04-24_130507.jpg',
GETDATE(),
100,
9443,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
44,
'ThinkPad E430C(3365-A16)14英寸笔记本电脑(i3-3110M 2G 500G GT630 2G独显 蓝牙 摄像头)',
'联想',
3699.00,
3599.00,
100.00,
'2013-04-24_130633.jpg,2013-04-24_130708.jpg,2013-04-24_130743.jpg',
GETDATE(),
100,
9443,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
44,
'联想(Lenovo) Y500N 15.6英寸笔记本电脑 (i5-3230M 8G 1T 4G独显 DVD刻录 Win8)灰色',
'联想',
6699.00,
6399.00,
300.00,
'2013-04-24_130949.jpg,2013-04-24_131026.jpg,2013-04-24_131107.jpg',
GETDATE(),
100,
9443,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
44,
'联想(Lenovo)Z480AF 14.0英寸笔记本电脑(B960 2G 500G 1G独显 摄像头 DVD刻录 Linpus Lite)珊瑚蓝',
'联想',
3599.00,
3199.00,
400.00,
'2013-04-24_131229.jpg,2013-04-24_131253.jpg,2013-04-24_131318.jpg',
GETDATE(),
100,
9443,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
44,
'联想(Lenovo)G470AL 14.0英寸笔记本电脑(i5-2450M 2G 500G 1G独显 摄像头 DVD刻录 Linux)黑色',
'联想',
6128.00,
5988.00,
140.00,
'2013-04-24_130332.jpg,2013-04-24_130435.jpg,2013-04-24_130507.jpg',
GETDATE(),
100,
9443,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
44,
'ThinkPad E430C(3365-A16)14英寸笔记本电脑(i3-3110M 2G 500G GT630 2G独显 蓝牙 摄像头)',
'联想',
3699.00,
3599.00,
100.00,
'2013-04-24_130633.jpg,2013-04-24_130708.jpg,2013-04-24_130743.jpg',
GETDATE(),
100,
9443,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
44,
'联想(Lenovo) Y500N 15.6英寸笔记本电脑 (i5-3230M 8G 1T 4G独显 DVD刻录 Win8)灰色',
'联想',
6699.00,
6399.00,
300.00,
'2013-04-24_130949.jpg,2013-04-24_131026.jpg,2013-04-24_131107.jpg',
GETDATE(),
100,
9443,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
44,
'联想(Lenovo)Z480AF 14.0英寸笔记本电脑(B960 2G 500G 1G独显 摄像头 DVD刻录 Linpus Lite)珊瑚蓝',
'联想',
3599.00,
3199.00,
400.00,
'2013-04-24_131229.jpg,2013-04-24_131253.jpg,2013-04-24_131318.jpg',
GETDATE(),
100,
9443,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
44,
'联想(Lenovo)G470AL 14.0英寸笔记本电脑(i5-2450M 2G 500G 1G独显 摄像头 DVD刻录 Linux)黑色',
'联想',
6128.00,
5988.00,
140.00,
'2013-04-24_130332.jpg,2013-04-24_130435.jpg,2013-04-24_130507.jpg',
GETDATE(),
100,
9443,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
44,
'ThinkPad E430C(3365-A16)14英寸笔记本电脑(i3-3110M 2G 500G GT630 2G独显 蓝牙 摄像头)',
'联想',
3699.00,
3599.00,
100.00,
'2013-04-24_130633.jpg,2013-04-24_130708.jpg,2013-04-24_130743.jpg',
GETDATE(),
100,
9443,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
44,
'联想(Lenovo) Y500N 15.6英寸笔记本电脑 (i5-3230M 8G 1T 4G独显 DVD刻录 Win8)灰色',
'联想',
6699.00,
6399.00,
300.00,
'2013-04-24_130949.jpg,2013-04-24_131026.jpg,2013-04-24_131107.jpg',
GETDATE(),
100,
9443,
'')
-
-
insert
into poduct (bclassid,
name,brand,price,memberprice,differprice,picture,
time,stock,hit,detail)
-
values(
44,
'联想(Lenovo)Z480AF 14.0英寸笔记本电脑(B960 2G 500G 1G独显 摄像头 DVD刻录 Linpus Lite)珊瑚蓝',
'联想',
3599.00,
3199.00,
400.00,
'2013-04-24_131229.jpg,2013-04-24_131253.jpg,2013-04-24_131318.jpg',
GETDATE(),
100,
9443,
'')
-
-
-
-----产品评论表
-
-
--产品编号1评论
-
insert
into guest(
name,
content,productid,
time,ip)
values(
'aaa',
'物品真好用,下次还会光临的',
1,
GETDATE(),
'192.168.0.1')
-
insert
into guest(
name,
content,productid,
time,ip)
values(
'bbb',
'物品真好用,下次还会光临的',
1,
GETDATE(),
'192.168.0.2')
-
insert
into guest(
name,
content,productid,
time,ip)
values(
'ccc',
'物品真好用,下次还会光临的',
1,
GETDATE(),
'192.168.0.3')
-
insert
into guest(
name,
content,productid,
time,ip)
values(
'ddd',
'物品真好用,下次还会光临的',
1,
GETDATE(),
'192.168.0.4')
-
insert
into guest(
name,
content,productid,
time,ip)
values(
'ccc',
'物品真好用,下次还会光临的',
1,
GETDATE(),
'192.168.0.3')
-
insert
into guest(
name,
content,productid,
time,ip)
values(
'ddd',
'物品真好用,下次还会光临的',
1,
GETDATE(),
'192.168.0.4')
-
-
--产品编号2评论
-
insert
into guest(
name,
content,productid,
time,ip)
values(
'aaa',
'物品真好用,下次还会光临的',
2,
GETDATE(),
'192.168.0.1')
-
insert
into guest(
name,
content,productid,
time,ip)
values(
'bbb',
'物品真好用,下次还会光临的',
2,
GETDATE(),
'192.168.0.2')
-
insert
into guest(
name,
content,productid,
time,ip)
values(
'ccc',
'物品真好用,下次还会光临的',
2,
GETDATE(),
'192.168.0.3')
-
insert
into guest(
name,
content,productid,
time,ip)
values(
'ddd',
'物品真好用,下次还会光临的',
2,
GETDATE(),
'192.168.0.4')
-
insert
into guest(
name,
content,productid,
time,ip)
values(
'ccc',
'物品真好用,下次还会光临的',
2,
GETDATE(),
'192.168.0.3')
-
insert
into guest(
name,
content,productid,
time,ip)
values(
'ddd',
'物品真好用,下次还会光临的',
2,
GETDATE(),
'192.168.0.4')
-
-
--产品编号3评论
-
insert
into guest(
name,
content,productid,
time,ip)
values(
'aaa',
'物品真好用,下次还会光临的',
3,
GETDATE(),
'192.168.0.1')
-
insert
into guest(
name,
content,productid,
time,ip)
values(
'bbb',
'物品真好用,下次还会光临的',
3,
GETDATE(),
'192.168.0.2')
-
insert
into guest(
name,
content,productid,
time,ip)
values(
'ccc',
'物品真好用,下次还会光临的',
3,
GETDATE(),
'192.168.0.3')
-
insert
into guest(
name,
content,productid,
time,ip)
values(
'ddd',
'物品真好用,下次还会光临的',
3,
GETDATE(),
'192.168.0.4')
-
-
--产品编号6评论
-
insert
into guest(
name,
content,productid,
time,ip)
values(
'aaa',
'物品真好用,下次还会光临的',
6,
GETDATE(),
'192.168.0.1')
-
insert
into guest(
name,
content,productid,
time,ip)
values(
'bbb',
'物品真好用,下次还会光临的',
6,
GETDATE(),
'192.168.0.2')
-
insert
into guest(
name,
content,productid,
time,ip)
values(
'ccc',
'物品真好用,下次还会光临的',
6,
GETDATE(),
'192.168.0.3')
-
insert
into guest(
name,
content,productid,
time,ip)
values(
'ddd',
'物品真好用,下次还会光临的',
6,
GETDATE(),
'192.168.0.4')
-
-
--产品编号10评论
-
insert
into guest(
name,
content,productid,
time,ip)
values(
'aaa',
'物品真好用,下次还会光临的',
10,
GETDATE(),
'192.168.0.1')
-
insert
into guest(
name,
content,productid,
time,ip)
values(
'bbb',
'物品真好用,下次还会光临的',
10,
GETDATE(),
'192.168.0.2')
-
insert
into guest(
name,
content,productid,
time,ip)
values(
'ccc',
'物品真好用,下次还会光临的',
10,
GETDATE(),
'192.168.0.3')
-
insert
into guest(
name,
content,productid,
time,ip)
values(
'ddd',
'物品真好用,下次还会光临的',
10,
GETDATE(),
'192.168.0.4')
-
-
--产品编号16评论
-
insert
into guest(
name,
content,productid,
time,ip)
values(
'aaa',
'物品真好用,下次还会光临的',
16,
GETDATE(),
'192.168.0.1')
-
insert
into guest(
name,
content,productid,
time,ip)
values(
'bbb',
'物品真好用,下次还会光临的',
16,
GETDATE(),
'192.168.0.2')
-
insert
into guest(
name,
content,productid,
time,ip)
values(
'ccc',
'物品真好用,下次还会光临的',
16,
GETDATE(),
'192.168.0.3')
-
insert
into guest(
name,
content,productid,
time,ip)
values(
'ddd',
'物品真好用,下次还会光临的',
16,
GETDATE(),
'192.168.0.4')
-
-
--产品编号19评论
-
insert
into guest(
name,
content,productid,
time,ip)
values(
'aaa',
'物品真好用,下次还会光临的',
19,
GETDATE(),
'192.168.0.1')
-
insert
into guest(
name,
content,productid,
time,ip)
values(
'bbb',
'物品真好用,下次还会光临的',
19,
GETDATE(),
'192.168.0.2')
-
insert
into guest(
name,
content,productid,
time,ip)
values(
'ccc',
'物品真好用,下次还会光临的',
19,
GETDATE(),
'192.168.0.3')
-
insert
into guest(
name,
content,productid,
time,ip)
values(
'ddd',
'物品真好用,下次还会光临的',
19,
GETDATE(),
'192.168.0.4')
-
-
--产品编号22评论
-
insert
into guest(
name,
content,productid,
time,ip)
values(
'aaa',
'物品真好用,下次还会光临的',
22,
GETDATE(),
'192.168.0.1')
-
insert
into guest(
name,
content,productid,
time,ip)
values(
'bbb',
'物品真好用,下次还会光临的',
22,
GETDATE(),
'192.168.0.2')
-
insert
into guest(
name,
content,productid,
time,ip)
values(
'ccc',
'物品真好用,下次还会光临的',
22,
GETDATE(),
'192.168.0.3')
-
insert
into guest(
name,
content,productid,
time,ip)
values(
'ddd',
'物品真好用,下次还会光临的',
22,
GETDATE(),
'192.168.0.4')
-
-
--产品编号28评论
-
insert
into guest(
name,
content,productid,
time,ip)
values(
'aaa',
'物品真好用,下次还会光临的',
28,
GETDATE(),
'192.168.0.1')
-
insert
into guest(
name,
content,productid,
time,ip)
values(
'bbb',
'物品真好用,下次还会光临的',
28,
GETDATE(),
'192.168.0.2')
-
insert
into guest(
name,
content,productid,
time,ip)
values(
'ccc',
'物品真好用,下次还会光临的',
28,
GETDATE(),
'192.168.0.3')
-
insert
into guest(
name,
content,productid,
time,ip)
values(
'ddd',
'物品真好用,下次还会光临的',
28,
GETDATE(),
'192.168.0.4')
-
-
-
-----用户订单信息表
-
insert
into orders(userid,sumprice,orderdate,linkman,email,phone,postalcode,address,
result,remark,songhuoqixian,songhuofangshi,fukuanfangshi,
error)
-
values(
3,
285.00,
GETDATE(),
'aaa111',
'aaa111@live.cn',
'13576827625',
'475000',
'河南郑州市金水区金水路27号',
'0',
'',
14,
'顺丰',
'网银',
'')
-
insert
into orders(userid,sumprice,orderdate,linkman,email,phone,postalcode,address,
result,remark,songhuoqixian,songhuofangshi,fukuanfangshi,
error)
-
values(
4,
2778.00,
GETDATE(),
'bbb222',
'bbb222@live.cn',
'11814895599',
'475001',
'河南郑州市郑东新区花园路20号',
'0',
'',
14,
'圆通快递',
'支付宝',
'')
-
insert
into orders(userid,sumprice,orderdate,linkman,email,phone,postalcode,address,
result,remark,songhuoqixian,songhuofangshi,fukuanfangshi,
error)
-
values(
5,
5988.00,
GETDATE(),
'ccc333',
'ccc333@live.cn',
'11111111111',
'475002',
'河南郑州市金水区金水路555号',
'0',
'',
14,
'圆通快递',
'支付宝',
'')
-
insert
into orders(userid,sumprice,orderdate,linkman,email,phone,postalcode,address,
result,remark,songhuoqixian,songhuofangshi,fukuanfangshi,
error)
-
values(
3,
285.00,
GETDATE(),
'aaa111',
'aaa111@live.cn',
'13576827625',
'475000',
'河南郑州市金水区金水路27号',
'0',
'',
14,
'顺丰',
'网银',
'')
-
insert
into orders(userid,sumprice,orderdate,linkman,email,phone,postalcode,address,
result,remark,songhuoqixian,songhuofangshi,fukuanfangshi,
error)
-
values(
4,
2778.00,
GETDATE(),
'bbb222',
'bbb222@live.cn',
'11814895599',
'475001',
'河南郑州市郑东新区花园路20号',
'0',
'',
14,
'圆通快递',
'支付宝',
'')
-
insert
into orders(userid,sumprice,orderdate,linkman,email,phone,postalcode,address,
result,remark,songhuoqixian,songhuofangshi,fukuanfangshi,
error)
-
values(
5,
5988.00,
GETDATE(),
'ccc333',
'ccc333@live.cn',
'11111111111',
'475002',
'河南郑州市金水区金水路555号',
'0',
'',
14,
'圆通快递',
'支付宝',
'')
-
insert
into orders(userid,sumprice,orderdate,linkman,email,phone,postalcode,address,
result,remark,songhuoqixian,songhuofangshi,fukuanfangshi,
error)
-
values(
3,
285.00,
GETDATE(),
'aaa111',
'aaa111@live.cn',
'13576827625',
'475000',
'河南郑州市金水区金水路27号',
'0',
'',
14,
'顺丰',
'网银',
'')
-
insert
into orders(userid,sumprice,orderdate,linkman,email,phone,postalcode,address,
result,remark,songhuoqixian,songhuofangshi,fukuanfangshi,
error)
-
values(
4,
2778.00,
GETDATE(),
'bbb222',
'bbb222@live.cn',
'11814895599',
'475001',
'河南郑州市郑东新区花园路20号',
'0',
'',
14,
'圆通快递',
'支付宝',
'')
-
insert
into orders(userid,sumprice,orderdate,linkman,email,phone,postalcode,address,
result,remark,songhuoqixian,songhuofangshi,fukuanfangshi,
error)
-
values(
5,
5988.00,
GETDATE(),
'ccc333',
'ccc333@live.cn',
'11111111111',
'475002',
'河南郑州市金水区金水路555号',
'0',
'',
14,
'圆通快递',
'支付宝',
'')
-
insert
into orders(userid,sumprice,orderdate,linkman,email,phone,postalcode,address,
result,remark,songhuoqixian,songhuofangshi,fukuanfangshi,
error)
-
values(
3,
285.00,
GETDATE(),
'aaa111',
'aaa111@live.cn',
'13576827625',
'475000',
'河南郑州市金水区金水路27号',
'0',
'',
14,
'顺丰',
'网银',
'')
-
insert
into orders(userid,sumprice,orderdate,linkman,email,phone,postalcode,address,
result,remark,songhuoqixian,songhuofangshi,fukuanfangshi,
error)
-
values(
4,
2778.00,
GETDATE(),
'bbb222',
'bbb222@live.cn',
'11814895599',
'475001',
'河南郑州市郑东新区花园路20号',
'0',
'',
14,
'圆通快递',
'支付宝',
'')
-
insert
into orders(userid,sumprice,orderdate,linkman,email,phone,postalcode,address,
result,remark,songhuoqixian,songhuofangshi,fukuanfangshi,
error)
-
values(
5,
5988.00,
GETDATE(),
'ccc333',
'ccc333@live.cn',
'11111111111',
'475002',
'河南郑州市金水区金水路555号',
'0',
'',
14,
'圆通快递',
'支付宝',
'')
-
insert
into orders(userid,sumprice,orderdate,linkman,email,phone,postalcode,address,
result,remark,songhuoqixian,songhuofangshi,fukuanfangshi,
error)
-
values(
3,
285.00,
GETDATE(),
'aaa111',
'aaa111@live.cn',
'13576827625',
'475000',
'河南郑州市金水区金水路27号',
'0',
'',
14,
'顺丰',
'网银',
'')
-
insert
into orders(userid,sumprice,orderdate,linkman,email,phone,postalcode,address,
result,remark,songhuoqixian,songhuofangshi,fukuanfangshi,
error)
-
values(
4,
2778.00,
GETDATE(),
'bbb222',
'bbb222@live.cn',
'11814895599',
'475001',
'河南郑州市郑东新区花园路20号',
'0',
'',
14,
'圆通快递',
'支付宝',
'')
-
insert
into orders(userid,sumprice,orderdate,linkman,email,phone,postalcode,address,
result,remark,songhuoqixian,songhuofangshi,fukuanfangshi,
error)
-
values(
5,
5988.00,
GETDATE(),
'ccc333',
'ccc333@live.cn',
'11111111111',
'475002',
'河南郑州市金水区金水路555号',
'0',
'',
14,
'圆通快递',
'支付宝',
'')
-
insert
into orders(userid,sumprice,orderdate,linkman,email,phone,postalcode,address,
result,remark,songhuoqixian,songhuofangshi,fukuanfangshi,
error)
-
values(
3,
285.00,
GETDATE(),
'aaa111',
'aaa111@live.cn',
'13576827625',
'475000',
'河南郑州市金水区金水路27号',
'0',
'',
14,
'顺丰',
'网银',
'')
-
insert
into orders(userid,sumprice,orderdate,linkman,email,phone,postalcode,address,
result,remark,songhuoqixian,songhuofangshi,fukuanfangshi,
error)
-
values(
4,
2778.00,
GETDATE(),
'bbb222',
'bbb222@live.cn',
'11814895599',
'475001',
'河南郑州市郑东新区花园路20号',
'0',
'',
14,
'圆通快递',
'支付宝',
'')
-
insert
into orders(userid,sumprice,orderdate,linkman,email,phone,postalcode,address,
result,remark,songhuoqixian,songhuofangshi,fukuanfangshi,
error)
-
values(
5,
5988.00,
GETDATE(),
'ccc333',
'ccc333@live.cn',
'11111111111',
'475002',
'河南郑州市金水区金水路555号',
'0',
'',
14,
'圆通快递',
'支付宝',
'')
-
insert
into orders(userid,sumprice,orderdate,linkman,email,phone,postalcode,address,
result,remark,songhuoqixian,songhuofangshi,fukuanfangshi,
error)
-
values(
3,
285.00,
GETDATE(),
'aaa111',
'aaa111@live.cn',
'13576827625',
'475000',
'河南郑州市金水区金水路27号',
'0',
'',
14,
'顺丰',
'网银',
'')
-
insert
into orders(userid,sumprice,orderdate,linkman,email,phone,postalcode,address,
result,remark,songhuoqixian,songhuofangshi,fukuanfangshi,
error)
-
values(
4,
2778.00,
GETDATE(),
'bbb222',
'bbb222@live.cn',
'11814895599',
'475001',
'河南郑州市郑东新区花园路20号',
'0',
'',
14,
'圆通快递',
'支付宝',
'')
-
insert
into orders(userid,sumprice,orderdate,linkman,email,phone,postalcode,address,
result,remark,songhuoqixian,songhuofangshi,fukuanfangshi,
error)
-
values(
5,
5988.00,
GETDATE(),
'ccc333',
'ccc333@live.cn',
'11111111111',
'475002',
'河南郑州市金水区金水路555号',
'0',
'',
14,
'圆通快递',
'支付宝',
'')
-
insert
into orders(userid,sumprice,orderdate,linkman,email,phone,postalcode,address,
result,remark,songhuoqixian,songhuofangshi,fukuanfangshi,
error)
-
values(
3,
285.00,
GETDATE(),
'aaa111',
'aaa111@live.cn',
'13576827625',
'475000',
'河南郑州市金水区金水路27号',
'0',
'',
14,
'顺丰',
'网银',
'')
-
insert
into orders(userid,sumprice,orderdate,linkman,email,phone,postalcode,address,
result,remark,songhuoqixian,songhuofangshi,fukuanfangshi,
error)
-
values(
4,
2778.00,
GETDATE(),
'bbb222',
'bbb222@live.cn',
'11814895599',
'475001',
'河南郑州市郑东新区花园路20号',
'0',
'',
14,
'圆通快递',
'支付宝',
'')
-
insert
into orders(userid,sumprice,orderdate,linkman,email,phone,postalcode,address,
result,remark,songhuoqixian,songhuofangshi,fukuanfangshi,
error)
-
values(
5,
5988.00,
GETDATE(),
'ccc333',
'ccc333@live.cn',
'11111111111',
'475002',
'河南郑州市金水区金水路555号',
'0',
'',
14,
'圆通快递',
'支付宝',
'')
-
insert
into orders(userid,sumprice,orderdate,linkman,email,phone,postalcode,address,
result,remark,songhuoqixian,songhuofangshi,fukuanfangshi,
error)
-
values(
3,
285.00,
GETDATE(),
'aaa111',
'aaa111@live.cn',
'13576827625',
'475000',
'河南郑州市金水区金水路27号',
'0',
'',
14,
'顺丰',
'网银',
'')
-
insert
into orders(userid,sumprice,orderdate,linkman,email,phone,postalcode,address,
result,remark,songhuoqixian,songhuofangshi,fukuanfangshi,
error)
-
values(
4,
2778.00,
GETDATE(),
'bbb222',
'bbb222@live.cn',
'11814895599',
'475001',
'河南郑州市郑东新区花园路20号',
'0',
'',
14,
'圆通快递',
'支付宝',
'')
-
insert
into orders(userid,sumprice,orderdate,linkman,email,phone,postalcode,address,
result,remark,songhuoqixian,songhuofangshi,fukuanfangshi,
error)
-
values(
5,
5988.00,
GETDATE(),
'ccc333',
'ccc333@live.cn',
'11111111111',
'475002',
'河南郑州市金水区金水路555号',
'0',
'',
14,
'圆通快递',
'支付宝',
'')
-
insert
into orders(userid,sumprice,orderdate,linkman,email,phone,postalcode,address,
result,remark,songhuoqixian,songhuofangshi,fukuanfangshi,
error)
-
values(
3,
285.00,
GETDATE(),
'aaa111',
'aaa111@live.cn',
'13576827625',
'475000',
'河南郑州市金水区金水路27号',
'0',
'',
14,
'顺丰',
'网银',
'')
-
insert
into orders(userid,sumprice,orderdate,linkman,email,phone,postalcode,address,
result,remark,songhuoqixian,songhuofangshi,fukuanfangshi,
error)
-
values(
4,
2778.00,
GETDATE(),
'bbb222',
'bbb222@live.cn',
'11814895599',
'475001',
'河南郑州市郑东新区花园路20号',
'0',
'',
14,
'圆通快递',
'支付宝',
'')
-
insert
into orders(userid,sumprice,orderdate,linkman,email,phone,postalcode,address,
result,remark,songhuoqixian,songhuofangshi,fukuanfangshi,
error)
-
values(
5,
5988.00,
GETDATE(),
'ccc333',
'ccc333@live.cn',
'11111111111',
'475002',
'河南郑州市金水区金水路555号',
'0',
'',
14,
'圆通快递',
'支付宝',
'')
-
-
-
-----用户订单列表
-
insert
into orderlist(orderid,productid,quantity,unitcost,productname)
-
values (
1,
1,
1,
145.00,
'飞利浦(PHILIPS)Style系列头戴耳机SHL5002(绿灰色)')
-
insert
into orderlist(orderid,productid,quantity,unitcost,productname)
-
values (
1,
6,
2,
70.00,
'三星I9300 i9100 N7100 I9003 I9008L S5830 I9220耳机')
-
insert
into orderlist(orderid,productid,quantity,unitcost,productname)
-
values (
2,
10,
1,
739.00,
'西部数据(Western Digital)绿盘 1TB WD10EURX SATA 3Gb/s 64MB 台式机监控硬盘')
-
insert
into orderlist(orderid,productid,quantity,unitcost,productname)
-
values (
2,
19,
1,
2039.00,
'英特尔(Intel)32纳米 酷睿i7 四核处理器 i7 2600K盒装CPU')
-
insert
into orderlist(orderid,productid,quantity,unitcost,productname)
-
values (
3,
28,
1,
5988.00,
'联想(Lenovo)G470AL 14.0英寸笔记本电脑(i5-2450M 2G 500G 1G独显 摄像头 DVD刻录 Linux)黑色')
-
-
-
-----新闻表
-
insert
into news(title,
content,
time,
type)
-
values(
'本站新闻1',
'
-
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
-
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
-
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
-
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
-
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
-
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
-
',
GETDATE(),
'本站')
-
-
insert
into news(title,
content,
time,
type)
-
values(
'本站新闻2',
'
-
222222222222222222222222222222222222222222222222222222222222222222222222222222222222
-
222222222222222222222222222222222222222222222222222222222222222222222222222222222222
-
222222222222222222222222222222222222222222222222222222222222222222222222222222222222
-
222222222222222222222222222222222222222222222222222222222222222222222222222222222222
-
222222222222222222222222222222222222222222222222222222222222222222222222222222222222
-
222222222222222222222222222222222222222222222222222222222222222222222222222222222222
-
',
GETDATE(),
'本站')
-
-
insert
into news(title,
content,
time,
type)
-
values(
'娱乐新闻1',
'
-
333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333
-
333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333
-
333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333
-
333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333
-
333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333
-
333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333
-
',
GETDATE(),
'娱乐')
-
-
insert
into news(title,
content,
time,
type)
-
values(
'娱乐新闻2',
'
-
333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333
-
333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333
-
333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333
-
333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333
-
333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333
-
333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333
-
',
GETDATE(),
'娱乐')
-
-
insert
into news(title,
content,
time,
type)
-
values(
'财经新闻1',
'
-
4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444
-
4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444
-
4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444
-
4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444
-
4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444
-
4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444
-
',
GETDATE(),
'财经')
-
-
insert
into news(title,
content,
time,
type)
-
values(
'财经新闻2',
'
-
444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444
-
444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444
-
444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444
-
444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444
-
444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444
-
444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444
-
',
GETDATE(),
'财经')
-
-
insert
into news(title,
content,
time,
type)
-
values(
'国外新闻1',
'
-
555555555555555555555555555555555555555555555555555555555555
-
555555555555555555555555555555555555555555555555555555555555
-
555555555555555555555555555555555555555555555555555555555555
-
555555555555555555555555555555555555555555555555555555555555
-
555555555555555555555555555555555555555555555555555555555555
-
555555555555555555555555555555555555555555555555555555555555
-
',
GETDATE(),
'国外')
-
-
insert
into news(title,
content,
time,
type)
-
values(
'国外新闻2',
'
-
555555555555555555555555555555555555555555555555555555555555
-
555555555555555555555555555555555555555555555555555555555555
-
555555555555555555555555555555555555555555555555555555555555
-
555555555555555555555555555555555555555555555555555555555555
-
555555555555555555555555555555555555555555555555555555555555
-
555555555555555555555555555555555555555555555555555555555555
-
',
GETDATE(),
'国外')
-
-
insert
into news(title,
content,
time,
type)
-
values(
'股票新闻1',
'
-
666666666666666666666666666666666666666666666666666666666666
-
666666666666666666666666666666666666666666666666666666666666
-
666666666666666666666666666666666666666666666666666666666666
-
666666666666666666666666666666666666666666666666666666666666
-
666666666666666666666666666666666666666666666666666666666666
-
666666666666666666666666666666666666666666666666666666666666
-
',
GETDATE(),
'股票')
-
-
insert
into news(title,
content,
time,
type)
-
values(
'股票新闻2',
'
-
666666666666666666666666666666666666666666666666666666666666
-
666666666666666666666666666666666666666666666666666666666666
-
666666666666666666666666666666666666666666666666666666666666
-
666666666666666666666666666666666666666666666666666666666666
-
666666666666666666666666666666666666666666666666666666666666
-
666666666666666666666666666666666666666666666666666666666666
-
',
GETDATE(),
'股票')
-
-
insert
into news(title,
content,
time,
type)
-
values(
'商机新闻1',
'
-
777777777777777777777777777777777777777777777777777777777777
-
777777777777777777777777777777777777777777777777777777777777
-
777777777777777777777777777777777777777777777777777777777777
-
777777777777777777777777777777777777777777777777777777777777
-
777777777777777777777777777777777777777777777777777777777777
-
777777777777777777777777777777777777777777777777777777777777
-
',
GETDATE(),
'商机')
-
-
insert
into news(title,
content,
time,
type)
-
values(
'商机新闻2',
'
-
777777777777777777777777777777777777777777777777777777777777
-
777777777777777777777777777777777777777777777777777777777777
-
777777777777777777777777777777777777777777777777777777777777
-
777777777777777777777777777777777777777777777777777777777777
-
777777777777777777777777777777777777777777777777777777777777
-
777777777777777777777777777777777777777777777777777777777777
-
',
GETDATE(),
'商机')
-
-
-
--回复表
-
insert
into reply(
content,
time,guestid)
values(
'谢谢您的大力支持',
'2012-3-2',
1)
-
insert
into reply(
content,
time,guestid)
values(
'谢谢您的大力支持',
'2012-3-2',
1)
-
insert
into reply(
content,
time,guestid)
values(
'谢谢您的大力支持',
'2012-3-2',
2)
-
insert
into reply(
content,
time,guestid)
values(
'谢谢您的大力支持',
'2012-3-2',
2)
-
insert
into reply(
content,
time,guestid)
values(
'谢谢您的大力支持',
'2012-3-2',
3)
-
insert
into reply(
content,
time,guestid)
values(
'谢谢您的大力支持',
'2012-3-2',
3)
-
-
-
--购物车表
-
insert
into shoppingcar
values(
3,
1,
2)
-
insert
into shoppingcar
values(
3,
18,
3)
-
go
-
-
-
-------------------------------------------------------设置级联
-
--删除product表的外键约束(poduct表和bclass)
-
alter
table poduct
-
drop
constraint FK__poduct__bclassid__0DAF0CB0
-
go
-
--创建product表的级联外键约束
-
alter
table poduct
-
add
constraint FK_poduct_bclassid foreign
key(bclassid)
references bclass(bclassid)
-
--设置为级联
-
on
delete
cascade
-
on
update
cascade
-
go
-
-
-
--删除guest表的外键约束(guest表和poduct)
-
alter
table guest
-
drop
constraint FK__guest__productid__164452B1
-
go
-
--创建guest表的级联外键约束
-
alter
table guest
-
add
constraint FK_guest_productid foreign
key(productid)
references poduct(productid)
-
--设置为级联
-
on
delete
cascade
-
on
update
cascade
-
go
-
-
-
--删除orderlist表的外键约束(orderlist表和poduct表)
-
alter
table orderlist
-
drop
constraint FK__orderlist__produ__20C1E124
-
go
-
--创建orderlist表的级联外键约束
-
alter
table orderlist
-
add
constraint FK_orderlist_productid foreign
key(productid)
references poduct(productid)
-
--设置为级联
-
on
delete
cascade
-
on
update
cascade
-
go
-
-
-
--删除orderlist表的外键约束(orders表和users表)
-
alter
table orders
-
drop
constraint FK__orders__userid__1B0907CE
-
go
-
--创建orderlist表的级联外键约束
-
alter
table orders
-
add
constraint FK_orders_userid foreign
key(userid)
references
users(userid)
-
--设置为级联
-
on
delete
cascade
-
on
update
cascade
-
go
-
-
--删除reply表的外键约束(reply表和guest表)
-
alter
table reply
-
drop
constraint FK__reply__guestid__25869641
-
go
-
--创建reply表的级联外键约束
-
alter
table reply
-
add
constraint FK_reply_guestid foreign
key(guestid)
references guest(guestid)
-
--设置为级联
-
on
delete
cascade
-
on
update
cascade
-
go
-
-
--删除shoppingcar表的外键约束(shoppingcar表和users表)
-
alter
table shoppingcar
-
drop
constraint FK__shoppingc__useri__2A4B4B5E
-
go
-
--创建shoppingcar表的级联外键约束
-
alter
table shoppingcar
-
add
constraint FK_shoppingcar_userid foreign
key(userid)
references
users(userid)
-
--设置为级联
-
on
delete
cascade
-
on
update
cascade
-
go
-
-
--删除shoppingcar表的外键约束(shoppingcar表和poduct表)
-
alter
table shoppingcar
-
drop
constraint FK__shoppingc__produ__2B3F6F97
-
go
-
--创建shoppingcar表的级联外键约束
-
alter
table shoppingcar
-
add
constraint FK_shoppingcar_productid foreign
key(productid)
references poduct(productid)
-
--设置为级联
-
on
delete
cascade
-
on
update
cascade
-
go
-
-
select*
from
users
-
select*
from aclass
-
select*
from bclass
-
select*
from poduct
-
select*
from news
-
select*
from orders
-
select*
from orderlist
-
select*
from guest
-
select*
from reply
-
select*
from shoppingcar
-
-
update shoppingcar
set
num=
num+
1
where userid=
7
and productid=
1
转载:https://blog.csdn.net/zhangchen124/article/details/105408707
查看评论