Search
 
SCRIPT & CODE EXAMPLE
 

SQL

postgresql show current database

SELECT current_database();
Comment

show all database inside postgresql

-- Query to get all database in PostgreSQL and their oid (alternative to l) 
SELECT oid, datname FROM pg_database;  
Comment

postgres show databases

# List databases:
l
Comment

postgres show databases

SELECT datname FROM pg_database;
Comment

postgres show databases

# inside psql
l
Comment

psql show db

SELECT datname FROM pg_database;
Code language: SQL (Structured Query Language) (sql)
Comment

show all databases postgres

l
Code language: Shell Session (shell)
Comment

psql view databases

postgres=# l+
Code language: psql
Comment

PREVIOUS NEXT
Code Example
Sql :: create user mysql 
Sql :: sql server utc to local 
Sql :: oracle kill job by sid 
Sql :: oracle export trigger ddl 
Sql :: oracle list data files 
Sql :: sql select roundup column 
Sql :: mysql between start date and end date 
Sql :: hibernate with springboot mysql 
Sql :: oracle get nls settings 
Sql :: hw to delete a procedure in pl sql 
Sql :: day of week postgresql 
Sql :: mysql select from outside 
Sql :: mysql current user 
Sql :: SELECT LOCKED FROM public.databasechangeloglock WHERE ID=1 
Sql :: user privileges postgresql information_schema 
Sql :: how to delete a column in sql 
Sql :: mysqldump password 
Sql :: the package java.sql is not accessible 
Sql :: oracle search columns in schema 
Sql :: drop all database tables oracle sql developer 
Sql :: sql server 2008 first and last day of month 
Sql :: difference between where and having clause 
Sql :: host is not allowed to connect to this mysql server 
Sql :: oracle ora-00054 find 
Sql :: sql last 3 rows 
Sql :: postgres list all roles 
Sql :: phpmyadmin delete user 
Sql :: sql last updated 
Sql :: date less than current date sql 
Sql :: oracle undo usage by session 
ADD CONTENT
Topic
Content
Source link
Name
3+5 =