java - ora-00913 too many values while using sequence -


in table have used sequence create id automatically

how insert table using netbeans

i tried code insert values , got following error

[microsoft] [odbc driver oracle] [oracle]ora-00913:too many values

the code is:

 private void jbutton1actionperformed(java.awt.event.actionevent evt) {                                              try     {              string sql=("insert customer values(seq_user.nextval,?,?,?,?,?,?,?)");     pstmt=con.preparestatement(sql);     pstmt.setstring(1,lname.gettext());     pstmt.setstring(2,fname.gettext());     pstmt.setstring(3,email.gettext());     pstmt.setstring(4,password.gettext());     pstmt.setstring(5,address1.gettext());     pstmt.setstring(6,address2.gettext());     pstmt.setstring(7,city.gettext());     pstmt.executeupdate();     }     catch(sqlexception ex){         joptionpane.showmessagedialog(this,ex.getmessage()); }                                         


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -