请帮我确定我的代码无效的地方
UPDATE
wo.rr_sec
INNER JOIN
wo.rb_acpt ON
rr_sec.AC_NO = wo.rb_acpt.ac_no
SET
wo.rr_sec.p_name = wo.rb_acparts.p_name
WHERE
wo.rr_sec.AC_NO=wo.rb_acpt.ac_no and
wo.rr_sec.PART_NO=wo.rr_acparts.part_no;
答案 0 :(得分:0)
根据您的评论,我认为您需要类似的内容:
UPDATE
wo.rr_sec
SET
wo.rr_sec.p_name = wo.rb_acparts.p_name
FROM
wo.rr_sec
INNER JOIN
wo.rb_acpt ON
wo.rr_sec.AC_NO = wo.rb_acpt.ac_no
INNER JOIN
wo.rr_acparts ON
wo.rr_sec.PART_NO=wo.rr_acparts.part_no;