M
mahesh
HI alll
in my code i want to check that the sql query return null value
and if the query return null value the i hav to use
stmt.setXXX(1,Types.some oracle type)
else
i hav to set other value for that column using
stmt.setXXX(1,****)
to find null values i'm using
String st=rst.getInt(1).toString();
but if it returns null then it set the st=null
and it trhows null pointer exception
is there any way to achieve this
in my code i want to check that the sql query return null value
and if the query return null value the i hav to use
stmt.setXXX(1,Types.some oracle type)
else
i hav to set other value for that column using
stmt.setXXX(1,****)
to find null values i'm using
String st=rst.getInt(1).toString();
but if it returns null then it set the st=null
and it trhows null pointer exception
is there any way to achieve this