SQL syntax error
Solved
Viky
-
PLIPLAPLO Posted messages 1 Status Member -
PLIPLAPLO Posted messages 1 Status Member -
Hello,
I have a personal website where I use a database (the one offered by Free).
I received this error:
"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 '' at line 1"
I don't know where my problem comes from. Line 1 does not correspond to SQL syntax.
Can someone guide me to tell me where my error originates?
Thank you in advance
Viken
I have a personal website where I use a database (the one offered by Free).
I received this error:
"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 '' at line 1"
I don't know where my problem comes from. Line 1 does not correspond to SQL syntax.
Can someone guide me to tell me where my error originates?
Thank you in advance
Viken
17 answers
-
There is a ' or a " or an extra space instead of a char
example:
insert into toto values('integer_type_value')
instead of
insert into toto values(integer_type_value)
check your query carefully and correct it.
if it persists, send me a sample of your query to address removed by moderation and I will provide you with the solution.