UPDATE A
SET A.A2 = B.B2
FROM B
INNER JOIN A
ON A.A1 = B.B1
WHERE B.B2 = "XXX"
上面的语句在SQL SERVER跑没任何问题,到了MY SQL却跑不起来了
MY SQL
update A,B set A.A2 = B.B2 where A.A1 = B.B1 and B.B2 = "XXX"
delete l.* from liquonline_cms.cmsw_publish_2_android l left join liquonline_cms.cmsw_publish_2 r on l.IndexID=r.IndexID where r.IndexID is null