Search
 
SCRIPT & CODE EXAMPLE
 

SQL

postgresql get table names

SELECT table_name
  FROM information_schema.tables
 WHERE table_schema='public'
   AND table_type='BASE TABLE';
Comment

postgresql how to show table names

SELECT table_name
  FROM information_schema.tables
 WHERE table_schema='public'
   AND table_type='BASE TABLE';
Comment

show table postgres command

PostgreSQL show tables command
	
dt
Comment

postgresql show tables

c database_name -> to select the database
dt -> to show the tables in the current database
Comment

show table details postgresql

d table
Comment

show details of table postgres

postgres=# d tablename;
Comment

postgresql show tables

SELECT *
FROM pg_catalog.pg_tables
WHERE schemaname != 'pg_catalog' AND 
    schemaname != 'information_schema';
Code language: SQL (Structured Query Language) (sql)
Comment

PREVIOUS NEXT
Code Example
Sql :: what is my mysql version 
Sql :: table or view does not exist 
Sql :: sql calculate percentage 
Sql :: postgresql search object in array 
Sql :: what is the default password for sql server sa 
Sql :: truncate statement in sql 
Sql :: mysql first day of month date 
Sql :: check if sql temp table exists 
Sql :: how to get id of last inserted row in mysql 
Sql :: mysql select if empty result 
Sql :: float precision in psql 
Sql :: flask sqlalchemy filter multiple conditions 
Sql :: sql update null values 
Sql :: change column name sql server management studio 
Sql :: select row from mysql where date more than 30 days 
Sql :: load sql into mamp 
Sql :: mysql grant access to one database 
Sql :: truncate function in sql oracle 
Sql :: mysql separator 
Sql :: how to find database collation in postgres 
Sql :: alter column to null 
Sql :: how to login sql server using cmd 
Sql :: recently updated stored procedure in sql server 
Sql :: select first and last row sql 
Sql :: how to get the date from datetime in mysql 
Sql :: replace null in sql 
Sql :: SQLSTATE[42000]: Syntax error or access violation: 1075 Incorrect table definition; there can be only one auto column and it must be defined as a key" 
Sql :: oracle add time to date 
Sql :: mariadb hours between two dates 
Sql :: rename table sql server 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =