I have a syntax error in the following String
and I do not know what is due. Nparte is of type int
.
String editSQL="UPDATE PARTESDETRABAJO SET DESCRIPCIONTAREA=?,"+"FECHAENTRADA=?,"+"FECHAENTREGA=?,"+"TIEMPOEMPLEADO=?"+"WHERE NPARTE="+sesion.getAttribute("ENparte");
I get the following error and I can not solve it, I have passed sesion.getAttribute("ENparte")
to int
and I am peta, but as is the error is this:
Error: com.mysql.jdbc.exceptions.jdbc4.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 'NPARTE = 1' at line 1