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

list all database in postgres

l: for list all databases.
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

PREVIOUS NEXT
Code Example
Sql :: postgres foreign key multiple columns 
Sql :: amazon linux postgresql client 
Sql :: start mysql 
Sql :: CONCAT_WS() concat function we can use for adds two or more expressions together with a separator or delimeter. 
Sql :: get primary key of table 
Sql :: postgresql dump and restore db 
Sql :: plsql triggers 
Sql :: Query the list of CITY names starting with vowels (i.e., a, e, i, o, or u) from STATION. Your result cannot contain duplicates. 
Sql :: psql fatal database does not exist 
Sql :: Assign value to var in SQL 
Sql :: replace string value in sql 
Sql :: mysql show table fields 
Sql :: postgresql casting integer to string 
Sql :: order by desc postgres 
Sql :: how to change a column name in postgresql 
Sql :: run mysql file in terminal 
Sql :: how to change a collumn name in sql 
Sql :: mysql clear screen 
Sql :: remove user and their privileges postgres 
Sql :: Postgresql get diff between two dates in Months 
Sql :: search mysql database for column 
Sql :: write pandas dataframe to postgresql table psycopg2 
Sql :: Msg 241, Level 16, State 1, Line 12 Conversion failed when converting date and/or time from character string. 
Sql :: mysql connection w3 
Sql :: view databases in mysql 
Sql :: oracle to_char number format percentage 
Sql :: sql datetime format 
Sql :: get time component of datetime sql 
Sql :: sql server insert into table 
Sql :: postgresql stored procedure update table values 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =