This article is a mirror article of machine translation, please click here to jump to the original article.

View: 15735|Reply: 1

[ASP.NET] asp.net study the shopping cart item instructions you need to make

[Copy link]
Posted on 4/8/2015 11:45:02 AM | | | |




购物车需求说明.doc (1021 KB, Number of downloads: 7, Selling price: 1 Grain MB) image.rar (285.32 KB, Number of downloads: 0)




Previous:asp.net Use cookies to remember passwords and log in automatically
Next:Why is JSP more efficient than ASP PHP?
 Landlord| Posted on 4/8/2015 12:01:11 PM |
The database code of the shopping cart
  1. --创建数据库
  2. create database itsvseshop
  3. go
  4. use itsvseshop
  5. go

  6. --创建用户表
  7. create table tb_User
  8. (
  9.         UserID        int identity(1,1) primary key,
  10.         UserName varchar(10) not null,
  11.         TPassWord varchar(10) not null,
  12.         Tmoney        money
  13. )

  14. create table tb_GoodsInfo
  15. (
  16.         GoodsID int identity(1,1) primary key,
  17.         GoodsName varchar(20),
  18.         GoodsKind varchar(20),
  19.         GoodsPhoto varchar(50),
  20.         GoodsPrice money,
  21.         GoodsIntroduce varchar(50)
  22. )

  23. --插入用户数据
  24. insert into tb_User values('1','123','500')
  25. insert into tb_User values('2','123','6000')

  26. --插入商品
  27. insert into tb_GoodsInfo values('杯子','生活用品','image/水杯.bmp','5','喝水用的')
  28. insert into tb_GoodsInfo values('笔记本电脑','电器','image/图片2.jpg','6000','玩游戏用的')
  29. insert into tb_GoodsInfo values('牙刷','生活用品','image/牙刷.jpg','6','洗脸用的')

  30. --查询数据
  31. select * from tb_User
  32. select * from tb_GoodsInfo
Copy code


Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com