Mega Code Archive

 
Categories / PostgreSQL / Postgre SQL
 

Name of current database

postgres=# postgres=# -- System Information Functions postgres=# postgres=# -- name of current database postgres=# select current_database() ;  current_database ------------------  postgres (1 row) postgres=# postgres=#