-

- 加为好友
- 发送私信
- 在线聊天
-
winebottle
- 等级:

- 可用分等级:
- 总技术分:
- 总技术分排名:
- 揭贴率:
|
| 发表于:2008-08-19 20:17:27 楼主 |
新会员 只有0分么? 对不起大家了 --银行表 记录网站的帐户 create table bank (bankid int identity(1,1) primary key, bankusername nvarchar(100) not null, bankname nvarchar(100) not null, accounts nvarchar(30) not null, cardnum nvarchar(30) not null, bankintro nvarchar(500) not null, bankpic nvarchar(100) not null, isdefault bit default 0, isdisabled bit default 0, states int not null, ) --记录会员往银行的汇款 --汇款后 自动 修改 accounts 中的余额 create table bankroll (bankrollid int identity(1,1) primary key, userid int not null, bankid int not null, money float not null, isok int default 0, paytime datetime not null, endtime datetime , ) --会员的电子帐号 create table accounts (accountsid int identity(1,1) primary key, userid int not null, balance float, settime datetime, islocked bit default 0, ) --电子帐号之间的金额流动 create table accountsroll (asrollid int identity(1,1) primary key, fromaccountsid int , toaccountsid int, money float, CashTransferDate datetime not null, CashArrivalDate datetime , isok int default 0, ) 现在的问题是 accounts 表又没有存在的必要,是不是直接写道user表中作为字段好点, 现在这样 客户汇款 现要察看在accounts中是否已有帐号 有 修改余额 而且 查询某个人的详细金额流动的时候也要连接3个表 |
|
|
|
100
修改
删除
举报
引用
回复
| |