下面语句在SQL Server中完全可行:
update p_rpt_tmpA set p_rpt_tmpA.A0131=A01.A0131, p_rpt_tmpA.A0154=A01.A0154 from p_rpt_tmpA,A01 where p_rpt_tmpA.n_id=A01.n_id and A01.c_type='1'
SQL Server:
update p_rpt_tmpA set p_rpt_tmpA.A0131=A01.A0131, p_rpt_tmpA.A0154=A01.A0154 from p_rpt_tmpA,A01 where p_rpt_tmpA.n_id=A01.n_id and A01.c_type='1'
相等于
ACCESS:
UPDATE A01 INNER JOIN p_rpt_tmpA ON A01.N_Id = p_rpt_tmpA.n_id and A01.c_type='1' SET p_rpt_tmpA.A0154=A01.A0154