This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have a table name with table name = account , And The account table has four fields namely, account number,accountname,password,balance. I am interested in inserting only first three fileds.using the following snippet of the code.
Code snippet to insert into fisrt three fields.
PreparedStatement pst=con.prepareStatement("insert into bank values(?,?,?)"); pst.setInt(1,i); pst.setString(2,strNme); pst.setString(3,strPwd); pst.execute();
But I am getting SQL exception error.What is the workaround solution for the same ?
"You cannot change the truth but truth can change you "