|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
你对java乐观有点盲目。java的关键就是在服务器上表现优异,而且它提供了整个开发所需要的工具。应该是说,看哪天。net有没有机会赶上java。
/*
MySQLDataTransfer
SourceHost:localhost
SourceDatabase:book
TargetHost:localhost
TargetDatabase:book
Date:2008-7-2513:55:48
*/
SETFOREIGN_KEY_CHECKS=0;
------------------------------
--Tablestructurefort_book
------------------------------
CREATETABLE`t_book`(
`id`int(11)NOTNULLauto_incrementCOMMENT流水号,
`name`varchar(100)collateutf8_unicode_ciNOTNULLCOMMENT书名,
`price`decimal(10,2)NOTNULLCOMMENT代价,
`quantity`int(11)NOTNULLCOMMENT数目,
PRIMARYKEY (`id`),
UNIQUEKEY`name`(`name`)
)ENGINE=InnoDBAUTO_INCREMENT=5DEFAULTCHARSET=utf8COLLATE=utf8_unicode_ci;
------------------------------
--Tablestructurefort_bookstockhistory
------------------------------
CREATETABLE`t_bookstockhistory`(
`id`int(11)NOTNULLauto_incrementCOMMENT流水号,
`bookId`int(11)NOTNULLCOMMENT图书编号,
`quantity`int(11)NOTNULLCOMMENT数目,
`quantityOutstanding`int(11)NOTNULLCOMMENT数目滚存,
`price`decimal(10,2)NOTNULLCOMMENT代价,
`datetime`timestampNOTNULLdefaultCURRENT_TIMESTAMPonupdateCURRENT_TIMESTAMPCOMMENT工夫,
`note`varchar(255)collateutf8_unicode_cidefaultNULLCOMMENT备注,
PRIMARYKEY (`id`),
KEY`bookId`(`bookId`),
CONSTRAINT`t_bookstockhistory_ibfk_1`FOREIGNKEY(`bookId`)REFERENCES`t_book`(`id`)
)ENGINE=InnoDBAUTO_INCREMENT=5DEFAULTCHARSET=utf8COLLATE=utf8_unicode_ci;
------------------------------
--Tablestructurefort_order
------------------------------
CREATETABLE`t_order`(
`id`int(11)NOTNULLauto_incrementCOMMENT流水号,
`UserId`int(11)NOTNULLCOMMENT会员编号,
`Amount`decimal(10,0)NOTNULLCOMMENT总金额,
`Datetime`timestampNOTNULLdefaultCURRENT_TIMESTAMPonupdateCURRENT_TIMESTAMPCOMMENT工夫,
`Note`varchar(200)collateutf8_unicode_cidefaultNULLCOMMENT备注,
PRIMARYKEY (`id`),
KEY`UserId`(`UserId`),
CONSTRAINT`t_order_ibfk_1`FOREIGNKEY(`UserId`)REFERENCES`t_user`(`Id`)
)ENGINE=InnoDBAUTO_INCREMENT=13DEFAULTCHARSET=utf8COLLATE=utf8_unicode_ci;
------------------------------
--Tablestructurefort_orderbook
------------------------------
CREATETABLE`t_orderbook`(
`Id`int(11)NOTNULLauto_incrementCOMMENT流水号,
`OrderId`int(11)NOTNULLCOMMENT定单号,
`BookId`int(11)NOTNULLCOMMENT图书编号,
`Quantity`int(11)NOTNULLCOMMENT数目,
PRIMARYKEY (`Id`),
KEY`OrderId`(`OrderId`),
KEY`BookId`(`BookId`),
CONSTRAINT`t_orderbook_ibfk_1`FOREIGNKEY(`OrderId`)REFERENCES`t_order`(`id`),
CONSTRAINT`t_orderbook_ibfk_2`FOREIGNKEY(`BookId`)REFERENCES`t_book`(`id`)
)ENGINE=InnoDBAUTO_INCREMENT=15DEFAULTCHARSET=utf8COLLATE=utf8_unicode_ci;
------------------------------
--Tablestructurefort_user
------------------------------
CREATETABLE`t_user`(
`Id`int(11)NOTNULLauto_incrementCOMMENT流水号,
`username`varchar(20)collateutf8_unicode_ciNOTNULLCOMMENT用户名,
`password`varchar(50)collateutf8_unicode_ciNOTNULLCOMMENT暗码,
PRIMARYKEY (`Id`),
UNIQUEKEY`username`(`username`)
)ENGINE=InnoDBAUTO_INCREMENT=4DEFAULTCHARSET=utf8COLLATE=utf8_unicode_ci;
------------------------------
--Records
------------------------------
INSERTINTO`t_book`VALUES(1,Java基本12,25.01,0);
INSERTINTO`t_book`VALUES(2,Java初级编程,89.23,2);
INSERTINTO`t_book`VALUES(3,跟老紫竹学Java,50.45,3);
INSERTINTO`t_book`VALUES(4,Java年夜全,111.00,4);
INSERTINTO`t_bookstockhistory`VALUES(1,3,1,1,50.45,2008-07-2512:27:21,null);
INSERTINTO`t_bookstockhistory`VALUES(2,2,1,99,89.23,2008-07-2512:29:18,null);
INSERTINTO`t_bookstockhistory`VALUES(3,3,1,0,50.45,2008-07-2512:29:18,null);
INSERTINTO`t_bookstockhistory`VALUES(4,1,1,0,25.01,2008-07-2513:32:24,会员购置);
INSERTINTO`t_order`VALUES(7,2,2238,2008-07-2511:33:27,null);
INSERTINTO`t_order`VALUES(8,2,165,2008-07-2511:52:38,null);
INSERTINTO`t_order`VALUES(9,2,25,2008-07-2511:58:51,null);
INSERTINTO`t_order`VALUES(10,2,25,2008-07-2512:00:00,null);
INSERTINTO`t_order`VALUES(11,2,140,2008-07-2512:29:18,null);
INSERTINTO`t_order`VALUES(12,1,25,2008-07-2513:32:24,null);
INSERTINTO`t_orderbook`VALUES(5,7,1,11);
INSERTINTO`t_orderbook`VALUES(6,7,2,22);
INSERTINTO`t_orderbook`VALUES(7,8,1,1);
INSERTINTO`t_orderbook`VALUES(8,8,2,1);
INSERTINTO`t_orderbook`VALUES(9,8,3,1);
INSERTINTO`t_orderbook`VALUES(10,9,1,1);
INSERTINTO`t_orderbook`VALUES(11,10,1,1);
INSERTINTO`t_orderbook`VALUES(12,11,2,1);
INSERTINTO`t_orderbook`VALUES(13,11,3,1);
INSERTINTO`t_orderbook`VALUES(14,12,1,1);
INSERTINTO`t_user`VALUES(1,admin,admin);
INSERTINTO`t_user`VALUES(2,user,user);
INSERTINTO`t_user`VALUES(3,test,test);
大型的应用一般不会用这些框架(因为性能考虑);开发人员根据需要选择用一些框架,也可以不选用框架;不用框架并不代表要自己写框架;修改框架的可能性更小。 |
|