codice:if exists (select * from 0mastertol1_conversation where userid1 = 199) then select -1; else INSERT INTO 0mastertol1_conversation (userid1) VALUES (199); end if;
non riesco a trovare l'errore... mi restituisce sempre
codice:#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 'if exists (select * from 0mastertol1_conversation where userid1 = 199) then ' at line 1
è possibile fare if con mysql?

Rispondi quotando