我正在尝试从另一个表中不存在的表中删除列表。我可以选择列表:
SELECT count(mlsnum) as oldRecords
FROM coordinates
WHERE mlsnum NOT IN
(SELECT mlsnum
FROM RETS_Listings_full)
但是当我尝试删除列表时,我无法
delete FROM coordinates t1
LEFT JOIN RETS_Listings_full t2
ON t2.MLSNUM = t1.MLSNUM
WHERE t2.mlsnum IS NULL
错误显示 - Msg 102, Level 15, State 1, Line 1 “t1”附近的语法不正确。