• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to the setNull() method  RSS feed

 
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: 36659
475
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!