How to find that, a row is updated or not?

Answers were Sorted based on User's Feedback



How to find that, a row is updated or not?..

Answer / dipesh

when u run executeupdate() it return int if 1 return then
row updated oyherwise not.

Is This Answer Correct ?    3 Yes 0 No

How to find that, a row is updated or not?..

Answer / bln

executeUpdate() method returns an int value. This int
value is no of rows updated by the given query. If no rows
update, then it returns zero.

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More JDBC Interview Questions

What is jdbc vs odbc?

0 Answers  


Why can't Tomcat find my Oracle JDBC drivers in classes111.zip?

0 Answers  


Is jdbc secure?

0 Answers  


How does a custom RowSetReader get called from a CachedRowSet?

0 Answers  


what is the difference between SENSITIVE and INSENSITIVE?

1 Answers  






can we create a own jdbc driver? how can we create?

1 Answers   HCL,


Hi to all.. well i want to make a standalone application which can use the concept of connection pooling, constraint is that i have not to use any application server like weblogic etc. Please help me out. Thaks in advance.

3 Answers   Huawei,


can we define indexes on a foreign key? Explain pros and cons?

1 Answers  


What is the difference between Minus, and Intersect?

1 Answers  


What isolation level is used by the DBMS when inserting, updating and selecting rows from a database?

0 Answers  


When do we get java.sql.SQLException: No suitable driver found?

0 Answers  


What are cursor attributes?

3 Answers  


Categories