create table customer (
name varchar(30) not null,
ID varchar(30) not null,
age number,
address varchar(200) not null,
phone varchar(30) not null)create table account (
customerID varchar (30) not null,
accountID varchar(30) not null,
money number not null)create table subaccount (
accountID varchar(30) not null,
date varchar(30) not null,
money number not null)
=============================================================
select accountID from account, customer where account.customerID = customer.ID and customer.name = '张三'
=============================================================
insert into customer (name, ID, age, address, phone) values ('李四', '002', 22, 'aldjfaljdf', '123456')
insert into account (customerID, accountID, money) values ('002', '000002', 1000)
=============================================================
select customer.ID, customer.name, account.accountID, subaccount.date, subaccount.money from customer, account, subaccount where customer.name = '李四' and customer.ID = account.customerID and account.accountID = subaccount.accountID
=============================================================
如何控制的问题,只要在提款前先把当天历史记录以及帐户余额都取出来,然后判断后再处理就OK了
name varchar(30) not null,
ID varchar(30) not null,
age number,
address varchar(200) not null,
phone varchar(30) not null)create table account (
customerID varchar (30) not null,
accountID varchar(30) not null,
money number not null)create table subaccount (
accountID varchar(30) not null,
date varchar(30) not null,
money number not null)
=============================================================
select accountID from account, customer where account.customerID = customer.ID and customer.name = '张三'
=============================================================
insert into customer (name, ID, age, address, phone) values ('李四', '002', 22, 'aldjfaljdf', '123456')
insert into account (customerID, accountID, money) values ('002', '000002', 1000)
=============================================================
select customer.ID, customer.name, account.accountID, subaccount.date, subaccount.money from customer, account, subaccount where customer.name = '李四' and customer.ID = account.customerID and account.accountID = subaccount.accountID
=============================================================
如何控制的问题,只要在提款前先把当天历史记录以及帐户余额都取出来,然后判断后再处理就OK了
解决方案 »
- Java中用框架ssh删除有问题请想请教
- hibernate多对多关系配置,怎样实现新增中间表数据。
- 系统的字符问题
- 这样去北京找工作难吗?月薪又是多少?
- 请教一下:大家都是怎么写tomcat中web.xml的?
- 写了个简单的STRUTS,但action不执行???
- 怎样手动配置一个tomcat WEB应用程序
- 50请教一个JSP验证登录的神秘问题,分不够再加50,食言以后决不再CSDN里面混!!!!
- windows server 2003中用jdbc连接ms sql sever2000,可正常查询,但为何不能删除和更新?
- 如何得到一个字符串中某个特定的字符出现了多少次??
- 请教!如何将链接的下划线去掉!
- JDBC数据库联接的问题?(急)
1。字段date的类型用datetime类型。
2。select customer.ID, customer.name, account.accountID, subaccount.date, subaccount.money from customer, account, subaccount where customer.name = '李四' and customer.ID = account.customerID and account.accountID = subaccount.accountID
and subaccount.date between '2003-1-1' and '2003-1-24'
3。是“一天”可以取款的限额还是“一次”可以取款的限额?? 假如是“一次”的话,就可以修改表字段定义了。
和程序没有关系,SQL OK 就 OK !
恩, 是一天之内只能取2000.00大洋。 但是, 比如他先存进了500大洋, 然后立马取走2500.00大洋, 是合法的。
to: flashroom(找到啦)
我是应聘软件工程师的。 题目一共有三类, JAVA, C++, Database。
java c++ 任选其一, 因为我做过数据库的API,所以我选c++, database,是因为这个公司主要为中国银行, 什么什么银行做MIS的, 所以要考一些金融方面的数据库相关知识。
to:takecare(大厅)
那就露一手吧!
用PBENDO CODE(好象是pbendo code ) 或者自然语言写出一笔提款发生时的程序处理流程。
写个流程。
交易开始
输入帐号
显示相关信息
输入提款金额
判断是否大于金额总数
大于
结素交易或重新输入
小于
正常交易
登记存款帐分录
结素交易或继续交易
交易结素