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 phantom read and which isolation level prevents it?

0 Answers  


Why is jdbc needed?

0 Answers  


What is the use of statement in jdbc?

0 Answers  


commit() and rollback() methods are defined in which interface?

5 Answers  


What are different parts of a url?

0 Answers  






Why can't I invoke the ResultSet methods afterLast and beforeFirst when the method next works?

0 Answers  


What is the use of setFetchSize() and setMaxRows() methods in Statement?

0 Answers  


What is connection pooling? What Method and class used for Connection pooling in Java?

2 Answers  


How warnings are retrieved in JDBC?

1 Answers  


How to insert and delete a row programmatically? (new feature in JDBC 2.0)

0 Answers  


Explain the difference between rowset vs. Resultset in jdbc?

0 Answers  


Difference between JDBC and Hibernate? Give one sample based on the variance?

4 Answers   HCL, IBM, Xybion,


Categories