update table_p as p set p_name = a.name,p_user = a.user_id,p_type = 'P02' from ( select x.user_id,x.name,x.p_id from table_u x join table_p y on x.p_id = y.p_id ) as a where p.p_id = a.p_id;
update table_p as p set p_name = a.name,p_user = a.user_id,p_type = 'P02' from ( select x.user_id,x.name,x.p_id from table_u x join table_p y on x.p_id = y.p_id ) as a where p.p_id = a.p_id;
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。