select * from SYSTABLES, SYSCOLUMNS
where tabname your condition
and SYSTABLES.tabid = SYSCOLUMNS.tabid
因為工作環境關係, 用WHERE 條件式的JOIN 語法.
| Column | Type | Explanation |
|---|---|---|
| colname | VARCHAR(128) | Column name |
| tabid | INTEGER | Identifying code of table containing the column |
| colno | SMALLINT | Column number
The system sequentially assigns this (from left to right within each table).
|
| coltype | SMALLINT | Code indicating the data type of the column:
|
| collength | Any of the following data types:
| The value depends on the data type of the column. For some data types, the value is the column length (in bytes). See Storing Column Length for more information. |
| colmin | INTEGER | Minimum column length (in bytes) |
| colmax | INTEGER | Maximum column length (in bytes) |
| extended_id | INTEGER | Data type code, from the sysxtdtypestable, of the data type specified in the coltype column |
| seclabelid | INTEGER | The label ID of the security label associated with the column if it is a protected column. NULL otherwise. |
| colattr | SMALLINT |
|
沒有留言:
張貼留言