Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

count columns psql(PostreSQL)

select table_name, count(*) as column_count 
from information_schema."columns"
where table_schema = 'public' 
GROUP by table_name order by column_count desc;
Source by shekhargulati.com #
 
PREVIOUS NEXT
Tagged: #count #columns
ADD COMMENT
Topic
Name
2+2 =