帝国软件
  设为首页 加入收藏 关于我们
 
解密帝国网站管理系统v4.6
栏 目:
 
您的位置:首页 > 技术文档 > ASP编程 >
制作我们自己的Ebay(拍卖系统EN) - The Auction Database
作者: 发布时间:2005-03-12 来源:
Based on the information in the previous section, we have a good understanding of what our database schema should look like. The following tables list our database structure:


tblAuctions    tblAuctionItems
AID Unique ID to keep track of records Autonumber   IID Unique ID to keep track of records Autonumber
StartDate Date the auction started Date/Time   AID Which auction does this item belong to? (Foreign key to Auctions table) Integer
EndDate Date the auction is to end Date/Time   Name Name of the item being sold Text
SellerID The ID of the seller. (Foreign key to user table) Integer   Description Description of the item being sold Text
    MinPrice Minimum price to sell (specified by the seller) Money
tblAuctionBids   Increment Value to increment proxy bids by (specified by the seller) Money
BID Unique ID to keep track of records Autonumber   Available Number of items available to sell Integer
IID Unique ID to keep track of items (foreign key to AuctionItem table) Integer     
UID Unique ID to keep track of bidders (foreign key to AuctionUsers table) Integer   tblAuctionUsers
WinPrice Current price for a user (calculated by application) Money   UID Unique ID to keep track of records Autonumber
MaxBid Maximum price for a user Money   Name Name of user Text
BidItems The number of items this user bid for Integer     
WinItems The number of items this user would win if the auction ended immediately Integer     
Time The last time this bid was updated Date/Time     

Note that the above tables are simply used for example. You may decide to store more information for your purposes (i.e., you may store more than just a name in the user table). Already, however, the schema is getting kind of complex - each table has foreign keys to one or more other tables.


NOTE: You can use a pre-existing user table if you wish. We simply provide the tblAuctionUsers table definition for completeness sake.  
  
评论】【加入收藏夹】【 】【打印】【关闭
※ 相关链接
 ·制作我们自己的Ebay(拍卖系统EN)  (2005-03-12)
 ·制作我们自己的Ebay(拍卖系统EN)  (2005-03-12)
 ·利用ASP制作EXECL报表方法(一)  (2005-03-12)
 ·利用ASP制作EXECL报表方法(二)  (2005-03-12)
 ·介绍一个制作下拉菜单完全不同的  (2005-03-12)
 ·基于ACCESS数据库的纯asp论坛制作  (2005-03-12)
 ·超级留言本制作实例<1>  (2005-03-12)
 ·用ASP制作在线测试  (2005-03-12)
 ·词语搭配游戏的制作(ASP)一  (2005-03-12)
 ·词语搭配游戏的制作(ASP)二  (2005-03-12)

   栏目导行
  PHP编程
  ASP编程
  ASP.NET编程
  JAVA编程
   站点最新
·致合作伙伴的欢迎信
·媒体报道
·帝国软件合作伙伴计划协议
·帝国网站管理系统采集使用教程
·帝国网站管理系统模板制作教程
·帝国CMS模板下载
·Discuz6.0.1UC版通行证发布
·帝国网站管理系统之网站迁移教程
·帝国网站管理系统实例入门教程下载
·《帝国网站管理系统》实例入门教程
   类别最新
·在ASP中使用数据库
·使用ASP脚本技术
·通过启动脚本来感受ASP的力量
·学习使用ASP对象和组件
·解析asp的脚本语言
·初看ASP-针对初学者
·ASP开发10条经验总结
·ASP之对象总结
·ASP与数据库应用(给初学者)
·关于学习ASP和编程的28个观点
 
关于帝国 | 广告服务 | 联系我们 | 程序开发 | 网站地图 | 留言板 帝国网站管理系统