频道直达 - 专题 - 新闻 - 技巧 - 组网 - 开发 - 安全 - web编程 - 图像 - 操作系统 - 数据库 - 教育 - 旅游 - 健康 - 时尚 - 驱动 - 软件 - 游戏 - 多媒体 - ERP - 讨论组

制作我们自己的Ebay(拍卖系统EN) - The Auction Database

来源: 作者: 出处:巧巧读书 2006-09-02 进入讨论组

  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.  巧 巧 读 书:http://www.qqread.com/asp/2006/10/g241815.html 更多文章 更多内容请看系统优化大全系统安全设置系统安装手册专题,或进入讨论组讨论。
收藏此文】【 】【打印】【关闭
相关图文阅读
频道图文推荐
健 康 咨 询
时 尚 咨 询
巧巧读书宗旨
相关专题
最新论坛文章
站内各频道最新更新文档
站内最新制作专题
热门关键字导读
Photoshop教 程照片处理 照片制作 PS快捷键 抠图
计 算 机 故 障XP系统修复
艺 术 与 设 计设计 流媒体 设计欣赏 边框
计 算 机 安 全ARP
站内频道文章精选
巧巧电脑频道编辑信箱  告诉我们您想看的专题或文章