How to retrieve warnings in jdbc?



How to retrieve warnings in jdbc?..

Answer / Mayank Gupta

To retrieve warnings in JDBC, you can use the getWarnings() method of Java.sql.Connection or Java.sql.Statement objects. This method returns a java.sql.SQLWarning object containing any warning messages generated during the execution of SQL statements.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JDBC Interview Questions

After creating conntinpool in weblogic how to write the code in programe where i can use that pool object in the programe connecting to the database and how to debug programe withou eclipse

2 Answers   Wipro,


Why do I have to reaccess the database for Array, Blob, and Clob data?

1 Answers  


What are the common tasks of JDBC?

1 Answers  


What is isolation level? How to set it?

1 Answers   FGG,


How the JDBC application works?

1 Answers  


How does jdbc work?

1 Answers  


How to use JDBC to connect Microsoft Access?

1 Answers  


How do you create Connection?

5 Answers   HCL,


What is difference between java.util.Date and java.sql.Date?

1 Answers  


What type of drivers are used for web application?

2 Answers  


State the three different ways in which you can create a table?

1 Answers  


How to move the cursor in scrollable resultset ?

1 Answers  


Categories