发布时间:2025-06-24 19:11:49 作者:北方职教升学中心 阅读量:258
PostgresQL,您可以使用SQL查询来统计数据库中的所有表数。 在此查询中:your_table_schema。
table_type = 'BASE TABLE'SELECT COUNT(*)FROM information_schema.tablesWHERE table_schema IN ('your_table_schema') AND table_type = 'BASE TABLE';
table_schema = 'your_table_schema'
条件限制只包括查询 。
模型中的表。
pg_catalog.pg_tables。