Here you want to use the "describe" command in Postgresql. Assuming that you want to get information about a database table named users
, and you're logged into a Postgresql database using the psql
client, issue this command at the psql
prompt:
\d users
This will provide a description of the table named users. Your output from this command should look like this: