Difference between revisions of "Show databases"

From wikieduonline
Jump to navigation Jump to search
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
 +
{{lc}}
 +
* [[MariaDB]]: <code>[[show databases;]]</code>
 +
* [[MongoDB]]: <code>[[show databases;]]</code>
 +
* [[PostgreSQL]]: <code>[[\list]]</code>
 +
 +
  
 
[[PostgreSQL]]:  
 
[[PostgreSQL]]:  
 +
 +
<code>[[\list]]</code>
 +
 
  SELECT datname FROM [[pg_database]] WHERE datistemplate = false;
 
  SELECT datname FROM [[pg_database]] WHERE datistemplate = false;
 
  datname
 
  datname
Line 14: Line 23:
 
  (2 rows)
 
  (2 rows)
  
<code>[[\list]]</code>
 
  
  
* [[MariaDB]]: <code>[[show databases]]</code>
+
 
* [[MongoDB]]: <code>[[show databases]]</code>
+
* [[MariaDB]]: <code>[[show databases;]]</code>
 +
* [[MongoDB]]: <code>[[show databases;]]</code>
  
 
  rs0:PRIMARY> show databases;
 
  rs0:PRIMARY> show databases;
Line 33: Line 42:
  
 
== See also ==
 
== See also ==
* {{MongoDB}}
 
* {{PostgreSQL}}
 
* {{MariaDB}}
 
 
* {{SQL}}
 
* {{SQL}}
 
* {{DBs}}
 
* {{DBs}}
  
 
[[Category:PostgreSQL]]
 
[[Category:PostgreSQL]]

Latest revision as of 17:35, 8 January 2024

Advertising: