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 how to list all databases

List all 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

how to check database in postgresql

l OR l+
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 :: oracle sql select all days between two dates except weekends 
Sql :: mysql ip address data type 
Sql :: create temporal table in sql 
Sql :: sqlite autoincrement 
Sql :: oracle log files 
Sql :: sql server insert into select 
Sql :: python pandas df to postgres json table 
Sql :: sql select most frequent value in column 
Sql :: select milliseconds mysql 
Sql :: sql select duplicates based on two columns 
Sql :: update with select postgresql 
Sql :: update with join 
Sql :: spring data.sql table not found 
Sql :: copy value from one column to another postgres 
Sql :: sum query in sql 
Sql :: mysql 1 hour ago 
Sql :: mysql cast null to string 
Sql :: mysql check date range 
Sql :: mariadb json_extract 
Sql :: csv into data postgres 
Sql :: sql create database 
Sql :: activate log mysql 
Sql :: how to check table name in current database sql 
Sql :: current date in sql 
Sql :: mysql order by multiple columns 
Sql :: default number in sql 
Sql :: oracle duration between timestamps 
Sql :: sql database connectivity 
Sql :: sub query in linq 
Sql :: SQL Duplicates by Composite 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =