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;

 

 posted on 2019-01-11 10:23  xibuhaohao  阅读(747)  评论(0编辑  收藏  举报