A
aahben
Unregistered / Unconfirmed
GUEST, unregistred user!
大家看看如下的语句该怎么写,我是新手,对ORACLE不太熟,请帮忙看一下,如下语句不能执行,帮我修改一下,我以前是用先select ,再一条条的更新,但是数据太大,速度就慢了,我想要一次性更新语句,谢谢大家update a set a.theinvoicefee=b.sumfee from tb_businessbillpay a,(select invoiceno,sum(theinvoicefee) sumfee from tb_businessbillpay where billno is not null group by invoiceno) b where a.billno is null and a.invoiceno=b.invoiceno