What JDBC objects generate SQLWarnings?

What JDBC objects generate SQLWarnings?

- Connections, Statements and ResultSets generate SQLWarnings through getWarnings method.

- NOTE: The prior ResultSet warnings are cleared on each new read and prior Statement warnings are cleared with each new execution through clearWarnings method.

- These objects can be invoked after the execution of the SQL statements.

The following information is provided in the SQLWarning object:

1. A description of the warning or null is contained in a string object.
2. SQLSTATE or null contained in a string object.
3. Error code contained in an int value.
4. Pointer to the next SQLWarning or null.
How do I create an updatable ResultSet?
JDBC Updatable ResultSet - For the results to be updatable, the Statement object used to create the result sets must have the concurrency type ResultSet.CONCUR_UPDATABLE...
How do I insert an image file into a database?
Insert an image file - Upload all raw data-types (like binary documents) to the database as an array of bytes (bytes[]). Then you can,..
PreparedStatement - advantages of PreparedStatement
PreparedStatement - What is PreparedStatement?, What is the advantage of using a Prepared Statement?, difference between Statement and Prepared Statement...
Post your comment