Java examples for JDBC:PreparedStatement
set Null value for PreparedStatement
//package com.java2s; import java.sql.PreparedStatement; import java.sql.SQLException; public class Main { private static int setNull(PreparedStatement stmt, int index) throws SQLException { stmt.setNull(index++, java.sql.Types.NULL); return index; }// ww w. j a v a 2s . com }