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 :: DATE_SUB postgres 
Sql :: sql count number of rows after group by 
Sql :: sql select duplicates based on two columns 
Sql :: oracle running queries 
Sql :: drop primary key oracle 
Sql :: sql change a colum to unique 
Sql :: update with join 
Sql :: current timestamp in milliseconds mysql 
Sql :: how to select one row in mysql 
Sql :: check if has alpha characters sql 
Sql :: sql insert from excel 
Sql :: How can I tell how many Cores SQL Server is actually using? 
Sql :: psql select database 
Sql :: how to count null values in sql 
Sql :: mysql check date range 
Sql :: oracle locked objects 
Sql :: oracle drop sequence 
Sql :: sql if empty then 
Sql :: creating index in mysql 
Sql :: mysql remove first and last character from string 
Sql :: query to count the number of rows in a table in sqlalchemy 
Sql :: enter mysql command line 
Sql :: sql server create constraint 
Sql :: median mysql 
Sql :: oracle convert run duration to number 
Sql :: mysql root permission denied lost 
Sql :: drop schema sql 
Sql :: sample clause in sql 
Sql :: SQL CASE With ELSE in SQL 
Sql :: how to write uppercase in sql 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =