MS SQL Server 子查询更新:
update log set uin= b.uin from log a,logs b where a.accountuin = b.accountuin
mysql 更新:
update t_stat_month_user a INNER JOIN t_dept b on a.op_dept=b.op_id set a.dept_short_name=b.dept_short_name;
2022-09-19 07:48:03
MS SQL Server 子查询更新:
update log set uin= b.uin from log a,logs b where a.accountuin = b.accountuin
mysql 更新:
update t_stat_month_user a INNER JOIN t_dept b on a.op_dept=b.op_id set a.dept_short_name=b.dept_short_name;