Search
 
SCRIPT & CODE EXAMPLE
 

SQL

describe table postgres

postgres=# d schema.tablename;
Comment

postgre describe table


        
            
        
     SELECT 
   table_name, 
   column_name, 
   data_type 
FROM 
   information_schema.columns
WHERE 
   table_name = 'city';
Comment

1) PostgreSQL DESCRIBE TABLE using psql

d table_name or d+ table_name
or

SELECT 
   table_name, 
   column_name, 
   data_type 
FROM 
   information_schema.columns
WHERE 
   table_name = 'city';
Comment

postgres describe table

	# describe table in postgres

d+ <postgres_table>
Comment

PREVIOUS NEXT
Code Example
Sql :: difference between super key and candidate key 
Sql :: postgres list users and roles 
Sql :: update with select postgresql 
Sql :: add primary key with auto increment to existing table column mysql 
Sql :: laravel jwt 
Sql :: oracle apex warning message 
Sql :: create table split string function in sql server 
Sql :: varchar vs nvarchar sql 
Sql :: sqlalchemy return id after insert 
Sql :: sql insert from excel 
Sql :: postgres list users 
Sql :: how to insert multiple rows in sql 
Sql :: mysql cast null to string 
Sql :: sql select first and last record of each group 
Sql :: SQL Multiple Cases 
Sql :: postgresql delete limit 
Sql :: sql substring 
Sql :: mysql permissions 
Sql :: activate log mariadb 
Sql :: alter table add check constraint oracle 
Sql :: python uuid sqlalchemy 
Sql :: SQL Modify Column in a Table -PostgreSQL 
Sql :: oracle index size 
Sql :: commit in sql 
Sql :: sqlite unique multiple columns 
Sql :: tinydb add table 
Sql :: datediff in sql 
Sql :: find number of entries sql 
Sql :: sql greater than 
Sql :: sql count how many times a value appears 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =