--1 部门表
--2011-06-24
---插入DEPARTMENT(部门表)-
INSERT INTO Department(Name, Description)
VALUES ('Anniversary Balloons', 'These sweet balloons are the perfect gift for someone you love.')
GO
INSERT INTO Department(Name, Description )
VALUES ('Balloons for Children', 'The colorful and funny balloons will make any child smile!')
GO
--2 分类表
--2011-06-28
---插入CATEGORY(分类表)
--插入数据
TRUNCATE TABLE Category
GO
/*可以连接表的编码:例如,当你把自增表的记录删除了以后,再次增加记录时,它的编码会连续起来*/
-- Truncate是SQL中的一个删除数据表内容的语句,
--用法是:TRUNCATE TABLE name 参数 name(是要截断的表的名称或要删除其全部行的表的名称。)
--Truncate table 表名 速度快,而且效率高,因为:
-- TRUNCATE TABLE 在功能上与不带 WHERE 子句的 DELETE 语句相同:二者均删除表中的全部行。
--但 TRUNCATE TABLE 比 DELETE 速度快,且使用的系统和事务日志资源少。
--DELETE 语句每次删除一行,并在事务日志中为所删除的每行记录一项。
--TRUNCATE TABLE 通过释放存储表数据所用的数据页来删除数据,并且只在事务日志中记录页的释放。
SET IDENTITY_INSERT Category ON
GO
--SET IDENTITY_INSERT(允许将显式值插入表的标识列中。)语法:
--SET IDENTITY_INSERT [ database.[ owner.] ] { table } { ON | OFF }
--参数 database 是表所有者的名称。
INSERT INTO Category (CategoryID, DepartmentID, Name, Description )
VALUES (1, 1, 'Love & Romance', 'Here''s our collection of balloons with romantic messages.')
INSERT INTO Category (CategoryID, DepartmentID, Name, Description )
VALUES (2, 1, 'Birthdays', 'Tell someone "Happy Birthday" with one of these wonderful balloons!')
INSERT INTO Category (CategoryID, DepartmentID, Name, Description )
VALUES (3, 1, 'Weddings', 'Going to a wedding? Here''s a collection of balloons for that special event!')
INSERT INTO Category (CategoryID, DepartmentID, Name, Description )
VALUES (4, 2, 'Message Balloons', 'Why write on paper, when you can deliver your message on a balloon?')
INSERT INTO Category (CategoryID, DepartmentID, Name, Description )
VALUES (5, 2, 'Cartoons', 'Buy a balloon with your child''s favorite cartoon character!')
INSERT INTO Category (CategoryID, DepartmentID, Name, Description )
VALUES (6, 2, 'Miscellaneous', 'Various baloons that your kid will most certainly love!')
GO
--table 如果插入值大于表的当前标识值,则 SQL Server 自动将新插入值作为当前标识值使用。
--它的设置是在执行或运行时设置,而不是在分析时设置。
SET IDENTITY_INSERT Category OFF
GO
--3 商品表
--2011-06-28
---插入PRODUCT(商品表)
TRUNCATE TABLE Product
GO
SET IDENTITY_INSERT Product ON
GO
INSERT INTO Product(ProductID, Name, Description, Price, Thumbnail, Image, PromoFront, PromoDept )
VALUES (1, 'I Love You (Simon Elvin)', 'An adorable romantic balloon by Simon Elvin. You''ll fall in love with the cute bear bearing a bouquet of roses, a heart with I Love You, and a card.', 121.9900, 't0326801.jpg', '0326801.jpg', 0, 1)
GO
INSERT INTO Product(ProductID, Name, Description, Price, Thumbnail, Image, PromoFront, PromoDept )
VALUES (2, 'Elvis Hunka Burning Love', 'A heart shaped balloon with the great Elvis on it and the words "You''re My Hunka Hunka Burnin'' Love!". Also a copy of the Kings Signature.', 12.9900, 't16110p.jpg', '16110p.jpg', 0, 0)
GO
INSERT INTO Product(ProductID, Name, Description, Price, Thumbnail, Image, PromoFront, PromoDept )
VALUES (3, 'Funny Love', 'A red heart-shaped balloon with "I love you" written on a white heart surrounded by cute little hearts and flowers.', 12.9900, 't16162p.jpg', '16162p.jpg', 0, 0)
GO
INSERT INTO Product(ProductID, Name, Description, Price, Thumbnail, Image, PromoFront, PromoDept )
VALUES (4, 'Today, Tomorrow & Forever', 'White heart-shaped balloon with the words "Today, Tomorrow and Forever" surrounded with red hearts of varying shapes. "I Love You" appears at the bottom in a red heart.', 12.9900, 't16363p.jpg', '16363p.jpg', 0, 1)
GO
INSERT INTO Product(ProductID, Name, Description, Price, Thumbnail, Image, PromoFront, PromoDept )
VALUES (5, 'Smiley Heart Red Balloon', 'Red heart-shaped balloon with a smiley face. Perfect for saying I Love You!', 12.9900, 't16744p.jpg', '16744p.jpg', 0, 0)
GO
INSERT INTO Product(ProductID, Name, Description, Price, Thumbnail, Image, PromoFront, PromoDept )
VALUES (6, 'Love 24 Karat', 'A red heart-shaped balloon with "I Love You" in script writing. Gold heart outlines adorn the background.', 12.9900, 't16756p.jpg', '16756p.jpg', 0, 0)
GO
INSERT INTO Product(ProductID, Name, Description, Price, Thumbnail, Image, PromoFront, PromoDept )
VALUES (7, 'Smiley Kiss Red Balloon', 'Red heart-shaped balloon with a smiley face and three kisses. A perfect gift for Valentine''s Day!', 12.9900, 't16864p.jpg', '16864p.jpg', 0, 1)
GO
INSERT INTO Product(ProductID, Name, Description, Price, Thumbnail, Image, PromoFront, PromoDept )
VALUES (8, 'Love You Hearts', 'A balloon with a simple message of love. What can be more romantic?', 12.9900, 't16967p.jpg', '16967p.jpg', 0, 0)
GO
INSERT INTO Product(ProductID, Name, Description, Price, Thumbnail, Image, PromoFront, PromoDept )
VALUES (9, 'Love Me Tender', 'A heart-shaped balloon with a picture of the King himself-Elvis Presley. This must-have for any Elvis fan has "Love Me Tender" written on it with a copy of Elvis''s signature.', 12.9900, 't16973p.jpg', '16973p.jpg', 0, 0)
GO
INSERT INTO Product(ProductID, Name, Description, Price, Thumbnail, Image, PromoFront, PromoDept )
VALUES (10, 'I Can''t Get Enough of You Baby', 'When you just can''t get enough of someone, this Austin Powers style balloon says it all.', 12.9900, 't16974p.jpg', '16974p.jpg', 0, 1)
GO
INSERT INTO Product(ProductID, Name, Description, Price, Thumbnail, Image, PromoFront, PromoDept )
VALUES (11, 'Picture Perfect Love Swing', 'A red heart-shaped balloon with a cute picture of two children kissing on a swing.', 12.9900, 't16980p.jpg', '16980p.jpg', 0, 0)
GO
INSERT INTO Product(ProductID, Name, Description, Price, Thumbnail, Image, PromoFront, PromoDept )
VALUES (12, 'I Love You Roses', 'A white heart-shaped balloon has "I Love You" written on it and is beautifully decorated with two flowers, a small red heart in the middle, and miniature hearts all around.', 12.9900, 't214006p.jpg', '214006p.jpg', 0, 0)
GO
INSERT INTO Product(ProductID, Name, Description, Price, Thumbnail, Image, PromoFront, PromoDept )
VALUES (13, 'I Love You Script', 'A romantic red heart-shaped balloon with "I Love You" in white. What more can you say?', 12.9900, 't214041p.jpg', '214041p.jpg', 0, 0)
GO
INSERT INTO Product(ProductID, Name, Description, Price, Thumbnail, Image, PromoFront, PromoDept )
VALUES (14, 'Love Rose', 'A white heart-shaped balloon with a rose and the words "I Love You." Romantic and irresistible.', 12.9900, 't214168p.jpg', '214168p.jpg', 0, 1)
GO
INSERT INTO Product(ProductID, Name, Description, Price, Thumbnail, Image, PromoFront, PromoDept )
VALUES (15, 'You''re So Special', 'Tell someone how special he or she is with this lovely heart-shaped balloon with a cute bear holding a flower.', 12.9900, 't215302p.jpg', '215302p.jpg', 0, 0)
GO
INSERT INTO Product(ProductID, Name, Description, Price, Thumbnail, Image, PromoFront, PromoDept )
VALUES (16, 'I Love You Red Flourishes', 'A simple but romantic red heart-shaped balloon with "I Love You" in large script writing.', 12.9900, 't22849b.jpg', '22849b.jpg', 0, 0)
GO
INSERT INTO Product(ProductID, Name, Description, Price, Thumbnail, Image, PromoFront, PromoDept )
VALUES (17, 'I Love You Script', 'A simple, romantic red heart-shaped balloon with "I Love You" in small script writing.', 12.9900, 't45093.jpg', '45093.jpg', 0, 0)
GO
INSERT INTO Product(ProductID, Name, Description, Price, Thumbnail, Image, PromoFront, PromoDept )
VALUES (18, 'Love Cascade Hearts', 'A romantic red heart-shaped balloon with hearts and I "Love You."', 12.9900, 't68841b.jpg', '68
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
asp.net 电子商务开发实战 系统 源码 (157个子文件)
Global.asax 955B
ProductsList.ascx 1KB
CategoriesList.ascx 882B
DepartmentsList.ascx 858B
Pager.ascx 605B
Product.aspx 859B
Oops.aspx 803B
Catalog.aspx 799B
Default.aspx 716B
web.config 9KB
CatalogAccess.cs 14KB
ProductsList.ascx.cs 4KB
BalloonShopConfiguration.cs 4KB
Product.aspx.cs 3KB
GenericDataAccess.cs 3KB
Pager.ascx.cs 3KB
Utilities.cs 3KB
Link.cs 2KB
Catalog.aspx.cs 2KB
CategoriesList.ascx.cs 1KB
DepartmentsList.ascx.cs 1KB
BalloonShop.master.cs 462B
BalloonShop.css 2KB
16558p.jpg 54KB
03945L.jpg 51KB
0661701.jpg 48KB
0611401.jpg 48KB
0366101.jpg 44KB
83947.jpg 42KB
38202.jpg 42KB
03944l.jpg 41KB
83951.jpg 40KB
26013.jpg 37KB
16988p.jpg 37KB
16974p.jpg 36KB
0276001.jpg 35KB
16772p.jpg 34KB
16118p.jpg 34KB
0521201.jpg 33KB
0522101.jpg 32KB
16148p.jpg 32KB
215017p.jpg 32KB
0510801.jpg 32KB
16110p.jpg 32KB
214046p.jpg 31KB
81947pl.jpg 31KB
16151p.jpg 31KB
a1180401.jpg 31KB
1368601.jpg 31KB
68841b.jpg 30KB
7008501.jpg 30KB
42139.jpg 30KB
16809p.jpg 30KB
22849b.jpg 29KB
38199.jpg 29KB
0326801.jpg 28KB
16973p.jpg 28KB
214041p.jpg 28KB
215402p.jpg 27KB
16980p.jpg 27KB
38196.jpg 27KB
16162p.jpg 27KB
214006p.jpg 27KB
16756p.jpg 26KB
35732.jpg 26KB
21825b.jpg 26KB
16967p.jpg 26KB
45093.jpg 26KB
7004801.jpg 25KB
42080.jpg 24KB
215302p.jpg 24KB
114118p.jpg 24KB
16363p.jpg 23KB
114208p.jpg 23KB
42014.jpg 23KB
0704901.jpg 22KB
28734.jpg 22KB
214154p.jpg 21KB
114103P.jpg 20KB
214168p.jpg 20KB
16862p.jpg 19KB
0707401.jpg 18KB
16864p.jpg 18KB
16744p.jpg 13KB
115343P.jpg 13KB
t16162p.jpg 5KB
t03945L.jpg 4KB
t0276001.jpg 4KB
t22849b.jpg 4KB
t0366101.jpg 4KB
t215017p.jpg 4KB
t16110p.jpg 4KB
t83947.jpg 4KB
t16118p.jpg 4KB
t38202.jpg 4KB
t16558p.jpg 4KB
t21825b.jpg 4KB
t83951.jpg 4KB
t16988p.jpg 4KB
t03944l.jpg 4KB
共 157 条
- 1
- 2
gx1122
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页