mam takie zapytanie :
DELETE FROM url u WHERE u.Url IN ( SELECT u2.Url FROM ( SELECT DISTINCT PageErrorUrl FROM robot_message WHERE MessageType='UrlToRemove' LIMIT 50 ) AS A, url u2 WHERE u2.indexeddate IS NULL AND u2.url=A.PageErrorUrl )
niestety ciagle zwraca jakis warning :
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'u where u.Url in ( select u2.Url from ( SELECT DISTINCT Pa' at line 1
nie wiem dlaczego, wydaje się ze samo zapytanie jest ok.
prosze o pomoc.
ok problem rozwiazany
dla potomnych : bug mysql - nie mozna robic przy delete IN - trzeba znalezc alternatywne zapytanie bez IN.