Go to the psql commande line and type the following command:
\d+ table_name
If you want to use SQL, type the following query:
select column_name,data_typefrom information_schema.columnswhere table_name = 'YOUR_TABLE_NAME';