求一Oracle SQL语句 快,在线
我写下语句:
select jilh,zhih,yusp,xianj,yusp+xianj,pingjpj,(pingjpj*100)-(yusp+xianj) from tshoupdjgl s
left join
(select xianlcxdm,pingjpj from txianlcxxx where zhuangt='0') x
on s.xianlh=x.xianlcxdm where mod((yusp+xianj),pingjpj)<>0 and caozlx='0'
得到一个结果集,别名设为aaa
我想用这个结果集根据tshoupdjgl.jilh=aaa.jilh去更新tshoupdjgl表,使得
tshoupdjgl.xianj=aaa.((pingjpj*100)-(yusp+xianj))
请问SQL语句怎么写?
这oracle真是笨得死,我在SQL server里不费吹灰之力!

