如何找到给定数据库的Sybase索引列表? [英] How I can find the list of Sybase Indexes for a given database?

查看:365
本文介绍了如何找到给定数据库的Sybase索引列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Sybase中找到给定数据库的索引列表?

How I can find the list of Indexes for a given database in Sybase?

推荐答案

Query against sysobjects and sysindexes:
SELECT o.name,
       i.name
  FROM sysobjects o
  JOIN sysindexes i
    ON (o.id = i.id)

Sybase网站上提供了有关sysobjects和sysindexes系统表解释的文档。

Documentation on the interpretation of the sysobjects and sysindexes system tables is available on the Sybase web-site.

http:// www。加载存储过程库。 edbarlow.com/ 并键入
sp__helpindex

Load up stored procedure library from http://www.edbarlow.com/ and type in sp__helpindex

或使用Sybase提供的sp_helpindex,它希望将table-name作为参数。

or use the Sybase-provided sp_helpindex which expects the table-name as a parameter.

这篇关于如何找到给定数据库的Sybase索引列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆