提供 SYSCOLUMN 视图的目的是为了与提供 SYSINDEX 系统表的旧版本软件兼容。但以前的 SYSINDEX 系统表已被 ISYSIDX 系统表所取代,并且您应当使用与该系统表对应的 ISYSIDX 系统视图。
在以下的 SQL 语句中提供了组成该视图的表和列。要了解有关特定表或列的详细信息,请使用该视图定义下所提供的链接。
ALTER VIEW "SYS"."SYSINDEX" as select b.table_id, b.index_id, b.object_id, p.root, b.dbspace_id, case b."unique" when 1 then 'Y' when 2 then 'U' when 3 then 'M' when 4 then 'N' when 5 then 'Y' else 'I' end as "unique", t.creator, b.index_name, r.remarks, 10 as hash_limit, b.dbspace_id as file_id from(SYS.ISYSIDX as b left outer join SYS.ISYSPHYSIDX as p on(b.table_id = p.table_id and b.phys_index_id = p.phys_index_id)) left outer join SYS.ISYSREMARK as r on(b.object_id = r.object_id) ,SYS.ISYSTAB as t where t.table_id = b.table_id and b.index_category = 3 |
![]() |
使用DocCommentXchange讨论此页。
|
版权 © 2013, SAP 股份公司或其关联公司. - SAP Sybase SQL Anywhere 16.0 |