-1
此查詢的輸出讓我重複表中的行更新,您不能指定目標表「rinexo」在FROM子句
select * from rinex1 where rid not in
(select min(rid) from rinex1 group by rinex_version,type);
現在我希望他們使用此查詢,刪除,
delete from rinex1 where rid not in
(select min(rid) from rinex1 group by rinex_version,type);
它提供了以下錯誤說:
您不能指定目標表 'rinexo' 的更新在FROM子句
我該怎麼辦?
嘿感謝的答案,但它給了我這個錯誤:錯誤1064(42000):你在你的SQL語法錯誤;請檢查與您的MySQL服務器版本相對應的手冊,以獲取在第1行'AS p'附近使用的正確語法 – user2515734