Answers for "postgresql display table contents"

2

describe table query in postgresql

select column_name, data_type, character_maximum_length, column_default, is_nullable
from INFORMATION_SCHEMA.COLUMNS where table_name = '<name of table>';
Posted by: Guest on June-25-2021
1

postgresql how to show table names

SELECT table_name
  FROM information_schema.tables
 WHERE table_schema='public'
   AND table_type='BASE TABLE';
Posted by: Guest on August-17-2021

Code answers related to "postgresql display table contents"

Browse Popular Code Answers by Language