Hola, estoy intentando insertar una tupla desde una pagina JSP. Esta es la sentencia SQL:
Código:
String SQLdocumento =
"INSERT INTO documento (titulo, cuerpo, fecha, web_referencia, tipo) " +
"VALUES('" +titulo+ "', '" +texto+ "', '" +fecha+ "', '" +web+ "', '" +tipo+"')";
y este el error que me devuelve:
Código:
com.mysql.jdbc.exceptions.MySQLSyntaxErrorException:
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
me esta volviendo loco... que se me está pasando???
Gracias y salu2!