表的索引信息保存在sysindexes表中,需要使用tabid进行检索。
select * from sysindexes where tabid in (select tabid from systables where tabname = 'mytab');
本文介绍如何通过SQL查询sysindexes表,利用tabid从systables表中筛选出'tabname'为'mytab'的对应表的索引信息。
表的索引信息保存在sysindexes表中,需要使用tabid进行检索。
select * from sysindexes where tabid in (select tabid from systables where tabname = 'mytab');
2976
726

被折叠的 条评论
为什么被折叠?