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;
时间: 2024-10-25 00:54:44
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;