update mypay_account_base set ab_ub_name_v = (
select ub_name_v from mypay_user_base
where ab_ub_id_n=ub_id_n
) where exists (
select 1 from mypay_user_base
where ab_ub_id_n=ub_id_n
) and ab_ub_type_c='bkof';
从一个表中拿某列设置到另一个表中,通过外键关联。
最新推荐文章于 2022-08-11 10:55:21 发布