gpt4 book ai didi

database - 如何获取postgresql中的表总数?

转载 作者:太空狗 更新时间:2023-10-30 01:38:40 25 4
gpt4 key购买 nike

有什么方法可以获取 Postgresql 数据库中表的总数?我使用的 postgresql 版本是 PostgreSQL 8.4.14。

最佳答案

select count(*)
from information_schema.tables;

或者,如果您只想查找特定模式的表数:

select count(*)
from information_schema.tables
where table_schema = 'public';

关于database - 如何获取postgresql中的表总数?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13931494/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com