- or download this
testdb=# select CATALOG_NAME from INFORMATION_SCHEMA.INFORMATION_SCHEM
+A_CATALOG_NAME;
catalog_name
--------------
testdb
(1 row)
- or download this
testdb=# select current_catalog;
...
------------------
testdb
(1 row)
- or download this
use DBI::Const::GetInfoType;
...
SQL_DBMS_VER [09.02.0000]
SQL_DATABASE_NAME [testdb]
SQL_SERVER_NAME [testdb]