1- creates a table (having two columns).
2- inserts a record.
3- read a value using ResultSet object.
The code i wrote is:
The above code compiles fine, but I am getting a runtime exception saying:
The table gets created, data which I inserted is also there. What is going wrong when I try to
access 1st column of the table using ResultSet object ??
Jeanne Boyarsky wrote:Yes. Good point. I got distracted by the resultset part and didn't pick up on that!
Thank you Jeanne, I am new to database programming.Can you please suggest me any good book for sql,
which teaches about sql commands,say, which one returns a result and which does'nt ??
Nirvikalp Rao wrote:Thank you Jeanne, I am new to database programming.Can you please suggest me any good book for sql,
which teaches about sql commands,say, which one returns a result and which does'nt ??