gpt4 book ai didi

sybase - 如何计算我的数据库中的表/ View /索引的数量

转载 作者:行者123 更新时间:2023-12-01 23:15:32 26 4
gpt4 key购买 nike

如何计算我的数据库中的表/ View /索引的数量

我正在使用 sybase 11

最佳答案

select count(*) from sysobjects where type = 'U'

应该为您提供用户表的数量。您也可以使用 type = 'V'计算观看次数。
select count(*) from sysindexes 

会给你一个索引计数。不过,您可能需要进一步过滤两者,具体取决于您想要的索引类型。

系统对象引用 here .
系统索引引用 here .

关于sybase - 如何计算我的数据库中的表/ View /索引的数量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3125339/

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