📜  表 psql 代码示例的计数列

📅  最后修改于: 2022-03-11 15:05:11.999000             🧑  作者: Mango

代码示例1
1
2
3
4
select table_name, count(*) as column_count 
from information_schema."columns"
where table_schema = 'public' 
GROUP by table_name order by column_count desc;