• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to the setNull() method

 
ramchander yshetti
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai,
i created a table student(sno number(2),sname varchar2(15));
i want to set null to the, sno and sname.

->i tried using the
insert into student values(?,?);

st.setNull(1,null);
st.setNull(2,null);

-> but it is not working.
->can any one suggest me.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34965
377
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are there any other fields? You can't set all the fields to null in a row - it would have no meaning.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic