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 :: Add a new column into table 
Sql :: mariadb create view 
Sql :: not between mysql 
Sql :: oracle undo tablespace list by user 
Sql :: how to delete user sql server 
Sql :: sql server update top n records 
Sql :: how to find max and min salary in sql 
Sql :: change password in mysql 
Sql :: how to execute MySQL Stored Procedure in Python 
Sql :: Drop check constraint in ms sql 
Sql :: Create table with JSON column SQL Server 
Sql :: if else sql 
Sql :: DELETE DUPLICATE VALUES FROM A TABLE IN SQL SERVER 
Sql :: mysql select inside sum 
Sql :: difference between in and between in sql 
Sql :: create a table in sql 
Sql :: sqlite clear console 
Sql :: carbon mysql d m y to y-m-d 
Sql :: download database devilbox 
Sql :: alter session set nls_language french 
Sql :: querry mysql by 2 columns 
Sql :: top frequency in sql server 
Sql :: datetrunc month sql 
Sql :: how to check current root password in mysql 
Sql :: sqlcmd list tables 
Sql :: mysql delete duplicate rows except one 
Sql :: sql not exists 
Sql :: flask sqlalchemy remove duplicates 
Sql :: learn sql 
Sql :: sql convert int to string 
ADD CONTENT
Topic
Content
Source link
Name
1+1 =