提供 SYSTABLE 视图的目的是为了与提供 SYSTABLE 系统表的旧版本软件兼容。但以前的 SYSTABLE 系统表已被 ISYSTAB 系统表所取代,并且您应当使用与该系统表对应的 ISYSTAB 系统视图。
SYSTABLE 视图的每一行都描述数据库中的一个表。
在以下的 SQL 语句中提供了组成该视图的表和列。要了解有关特定表或列的详细信息,请使用该视图定义下所提供的链接。
ALTER VIEW "SYS"."SYSTABLE" as select b.table_id, b.file_id, b.count, 0 as first_page, b.commit_action as last_page, COALESCE(ph.root,0) as primary_root, b.creator, 0 as first_ext_page, 0 as last_ext_page, b.table_page_count, b.ext_page_count, b.object_id, b.table_name, b.table_type_str as table_type, v.view_def, r.remarks, b.replicate, p.existing_obj, p.remote_location, 'T' as remote_objtype, p.srvid, case b.server_type when 1 then 'SA' when 2 then 'IQ' when 3 then 'OMNI' else 'INVALID' end as server_type, 10 as primary_hash_limit, 0 as page_map_start, s.source, b."encrypted" from SYS.SYSTAB as b left outer join SYS.ISYSREMARK as r on(b.object_id = r.object_id) left outer join SYS.ISYSSOURCE as s on(b.object_id = s.object_id) left outer join SYS.ISYSVIEW as v on(b.object_id = v.view_object_id) left outer join SYS.ISYSPROXYTAB as p on(b.object_id = p.table_object_id) left outer join(SYS.ISYSIDX as i left outer join SYS.ISYSPHYSIDX as ph on(i.table_id = ph.table_id and i.phys_index_id = ph.phys_index_id)) on(b.table_id = i.table_id and i.index_category = 1 and i.index_id = 0) |
![]() |
使用DocCommentXchange讨论此页。
|
版权 © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |