Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

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';
Source by www.postgresqltutorial.com #
 
PREVIOUS NEXT
Tagged: #PostgreSQL #DESCRIBE #TABLE #psql
ADD COMMENT
Topic
Name
3+2 =