Help for this page

Select Code to Download


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