MySQL Forums
Forum List  »  Spanish

Error syntax
Posted by: juan carlos ayala
Date: August 31, 2016 10:11AM

Buenas, se me presento un error pero no veo como pudo haber ocurrido

DBD::mysql::st execute failed: 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 'INSERT INTO lineaasiento SET tipotercero_OID=4151....

tengo entendido que cuando mysql arroja syntax to use near es un error que hay antes del INSERT lo cual no ocurre, el SQL se arma dinamicamente y no tengo registros de como se ejecuto pero es imposible que haya algo antes del INSERT.

$query = "INSERT INTO lineaasiento SET $campos";

Options: ReplyQuote


Subject
Views
Written By
Posted
Error syntax
1149
August 31, 2016 10:11AM
499
August 31, 2016 10:16AM
538
September 13, 2016 01:17AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.