show details of table postgres 1

show details of table postgres

postgres=# \d schema.tablename;

Here is what the above code is Doing:
1. Connect to the database
2. Create a cursor object
3. Execute the SQL query
4. Fetch the results
5. Close the connection

Similar Posts