1. 程式人生 > >Oracle 將另外一張表的列更新到本表的列

Oracle 將另外一張表的列更新到本表的列

_id bsp select oracl sele zid lec sql set

Oracle寫法:

update temp_agentpay_df q set q.up_batch_bizid=(select c.batch_bizid from temp_df_id c where c.detail_id=q.detail_id) ;

Mysql寫法:

update temp_agentpay_df q,temp_df_id c set q.up_batch_bizid=c.batch_bizid where c.detail_id=q.detail_id;

Oracle 將另外一張表的列更新到本表的列