Answers for "postgres show structure of table"

SQL
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
0

postgres read table structure

SELECT column_name, data_type, character_maximum_length
FROM INFORMATION_SCHEMA.COLUMNS
WHERE table_name ='table_name';
Posted by: Guest on October-21-2021

Code answers related to "postgres show structure of table"

Code answers related to "SQL"

Browse Popular Code Answers by Language