Difference between revisions of "Show databases"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Line 28: Line 28:
 
* {{TOC operation databases}}
 
* {{TOC operation databases}}
 
* [[PostgreSQL]]: <code>[[connect to]] [[MY_DATABASE_NAME]]</code>
 
* [[PostgreSQL]]: <code>[[connect to]] [[MY_DATABASE_NAME]]</code>
 +
* [[Show (MariaDB)]]
  
 
== See also ==
 
== See also ==

Revision as of 14:10, 23 August 2020

PostgreSQL:

SELECT datname FROM pg_database WHERE datistemplate = false;
datname
----------
postgres
(1 row)
SELECT datname FROM pg_database WHERE datistemplate = false;
datname
----------
postgres
your_database_name
(2 rows)


rs0:PRIMARY> show databases;
admin       0.031GB
config      0.031GB
local       0.281GB
YOUR_NAME   2.499GB


Related terms

See also

Advertising: