更新表字段为另一张表的字段
update std_mendian_advert
set dept_id = sys_employee.dept_id
from sys_employee
where std_mendian_advert.creator_id = sys_employee.id
版权声明:本文为cainiaobulan原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
更新表字段为另一张表的字段
update std_mendian_advert
set dept_id = sys_employee.dept_id
from sys_employee
where std_mendian_advert.creator_id = sys_employee.id