银行的sql查询语句是什么??

1.更新Customer _ Balance set Balance = Balance-200,其中card_id = '7777777 '

插入账单历史(卡标识,金额,账单日期)值(' 7777777 ',-200,' 2012-02-18 ')

2.更新Customer _ Balance set Balance = Balance-300,其中card_id = '7777777 '

更新Customer _ Balance set Balance = Balance+300,其中card_id = '99999999 '

插入账单历史(卡标识,金额,账单日期)值(' 7777777 ',-300,' 2012-02-19 ')