The SYSCOLUMN view is provided for compatibility with older versions of SQL Anywhere that offered a SYSCOLUMN system table. However, the previous SYSCOLUMN table has been replaced by the ISYSTABCOL system table, and its corresponding SYSTABCOL system view, which you should use instead.
The tables and columns that make up this view are provided in the SQL statement below. To learn more about a particular table or column, use the links provided beneath the view definition.
ALTER VIEW "SYS"."SYSCOLUMN" as select b.table_id, b.column_id, if c.sequence is null then 'N' else 'Y' endif as pkey, b.domain_id, b.nulls, b.width, b.scale, b.object_id, b.max_identity, b.column_name, r.remarks, b."default", b.user_type, b.column_type from SYS.ISYSTABCOL as b left outer join SYS.ISYSREMARK as r on(b.object_id = r.object_id) left outer join SYS.ISYSIDXCOL as c on(b.table_id = c.table_id and b.column_id = c.column_id and c.index_id = 0); |
Send feedback about this page via email or DocCommentXchange | Copyright © 2008, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.0 |