| Author |
SQL statements
|
vasu narayana
Greenhorn
Joined: Oct 31, 2005
Posts: 3
|
|
difference between executeUpdate() and executeQuery() and what are the JDBC exception?
|
regards<br /> vasu
|
 |
Makarand Parab
Ranch Hand
Joined: Dec 10, 2004
Posts: 121
|
|
Hi If you are working with insert, delete and update sql statement which returns the count, you would be working with executeupdate(). Mostly all DML statements. If you are working with select sql statement, which returns resultset, you would be working with executeQuery(). Both of them throw SQLException. Let me know if i am wrong. Regards Makarand Parab
|
 |
vasu narayana
Greenhorn
Joined: Oct 31, 2005
Posts: 3
|
|
|
hi thanks for ur reply.. i had cleared abt diff b/w executeUpdate n execute query .. one more question is .. tell me the jdbc exception types
|
 |
Adeel Ansari
Ranch Hand
Joined: Aug 15, 2004
Posts: 2874
|
|
For your first question, you should have read the docs. Now, please read the docs. There is no other better substitute.
|
 |
 |
|
|
subject: SQL statements
|
|
|