8.6.12 getCatalogs()
- Organization of this subsection
(1) Function
This method acquires a catalog name.
(2) Format
public synchronized ResultSet getCatalogs() throws SQLException
(3) Arguments
None.
(4) Return value
This method always returns a ResultSet object that contains no retrieval result rows. The following table shows the format of the ResultSet object that is returned.
Column No. |
Type |
Column name |
Description |
---|---|---|---|
1 |
String |
TABLE_CAT |
Catalog name |
(5) Exceptions
If this Connection object is closed before this method is executed, the JDBC driver throws an SQLException.