Utilizzando Java io ho scritto
ma mi viene restituito quest'errore:codice:pstmt.executeUpdate("INSERT INTO appartiene VALUES(?,?,?,?)"); pstmt.setString(1,"LAST_INSERT_ID()"); pstmt.setInt(2,1); pstmt.setInt(3,1); pstmt.setDate(4,null);
Errore Syntax error or access violation message from server: "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"
Chi mi sa aiutare?![]()
Grazie
p.s. al campo data ho inserito il campo null, è sbagliato?

Rispondi quotando