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 :: postgres get defined index in table 
Sql :: Check user permissions on postgres database 
Sql :: sql function 
Sql :: postgresql set auto increment value 
Sql :: compare date mysql 
Sql :: sql stored procedure with output parameters 
Sql :: mysql command not working in linux 
Sql :: not exists mysql 
Sql :: ascending order mysql 
Sql :: create a sqlite database c# 
Sql :: sequelize migration default value 
Sql :: vowels in sql 
Sql :: mysql count number of occurrences in a column 
Sql :: alter table add multiple columns postgresql 
Sql :: xampp import sql file command line 
Sql :: difference between super key and candidate key 
Sql :: mysql update with join 
Sql :: postgres regular expression replace 
Sql :: how to combine diff colmun value using group by postgres 
Sql :: check if a column is a primary key in sql server 
Sql :: nullif postgresql 
Sql :: sqlite get last 
Sql :: return result of function in postgresql 
Sql :: install postgresql 10 centos 7 
Sql :: mysql timestamp format 
Sql :: sql right join with where clause 
Sql :: how to get date in sql 
Sql :: how to set a column as unique in sql server 
Sql :: sql count total by foreign key 
Sql :: sqlite unique multiple columns 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =