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 "