I’ve been trying to update a field in MySQL database but I’m getting an error.
This is my Query
UPDATE tbl SET fl1="val",fl2="val", fl3="val" WHERE fl0="val val"
This is the error I received when I tried to execute the query
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 'val WHEREfl0="val val"' at line 1
I have removed the information from the query and replaced it with dummy text.
FOUND IT 😀 … I’m having multiple queries to be executed, this is done using PHP … The problem was in a query in the middle was like this:
THANK YOU ALL FOR YOUR SUPPORT.