Will you can use "setNString " as show in Example String Insr="Insert into PTTable "+"(PaID,Paname,PaAge,PaGender,PaDoctor,PaDate,TestID) VALues"+"(?,?,?,?,?,?,?)";
PreparedStatement stmt=(PreparedStatement)con.prepareCall(Insr); stmt.setInt(1, PaID); stmt.setNString(2,Paname); stmt.setInt(3, PaAge); stmt.setNString(4, PaGender); stmt.setNString(5,PaDoctor); stmt.setDate(6, Padate); stmt.setInt(7, TestID); stmt.executeUpdate();
Will you can use "setNString " as show in Example
String Insr="Insert into PTTable "+"(PaID,Paname,PaAge,PaGender,PaDoctor,PaDate,TestID) VALues"+"(?,?,?,?,?,?,?)";