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;
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;