1

My phpmyadmin is getting error with every IF statement. error is,

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'IF @@R

My code is like

UPDATE ...... WHERE .... AND `id`="123"
IF @@ROWCOUNT=0
INSERT INTO ......

how to fix this problem?

0 Answers0