表A:
mchId price (mchId 为primary key)表B:
mchId price (mchId 为primary key)要求:
A.mchId=B.mchId 相同时将A.price 该成B.price
mchId price (mchId 为primary key)表B:
mchId price (mchId 为primary key)要求:
A.mchId=B.mchId 相同时将A.price 该成B.price
解决方案 »
- vmware infrastructure client出现failed to power on:A general system error occurred
- 求一个order by子集的sql语句!
- 有深圳玩oracle的朋友吗?SOS
- drop 表 好久没有反映~!?急~~~~~~~~!
- 如何查找前5条数据(SQL语句如何写)
- 怎样用ORACLE 9i 帮助? 比如 要查 nowait 的怎么查?
- oracle9i中的数据如何倒入到oracle8.0.4中
- 如何进行这样的恢复操作,提供手段即可
- oracle 12c 通过nfs备份报错:ORA-17500: ODM err:Communication error on send
- 刚学Oracle 在培训 老师叫考OCP和RedHat 有必要考红帽吗?
- 一个proc问题,高手看看阿。
- 请教一条sql语句
mchId price (mchId 为primary key)表B:
mchId price (mchId 为primary key)要求:
A.mchId=B.mchId 相同时将A.price 该成B.priceupdate A
set price = (select price from B where A.mchId=B.mchId)
where exists (select 1 from B where A.mchId=B.mchId)
select A.mchId,B.price from A,B where A.mchId=B.mchId(+)
where A.mchId in (select B.mchId from B)