📜  计算列 psql(PostreSQL) - SQL 代码示例

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

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