Difference between revisions of "SYSBESTROWIDENTIFIER"
From Lianjapedia
Helen.george (Talk | contribs) |
Helen.george (Talk | contribs) |
||
Line 8: | Line 8: | ||
System Tables are system defined read-only tables. You can query these tables using the SELECT statement. | System Tables are system defined read-only tables. You can query these tables using the SELECT statement. | ||
− | {| class="wikitable" | + | {| class="wikitable" width=100% |
!Column||Data Type||Width||Description | !Column||Data Type||Width||Description | ||
|- | |- | ||
Line 17: | Line 17: | ||
|DATA_TYPE||N||2||SQL data type | |DATA_TYPE||N||2||SQL data type | ||
|- | |- | ||
− | |TYPE_NAME||C||30||Data source dependent type name | + | |valign="top"|TYPE_NAME||valign="top"|C||valign="top"|30||Data source dependent type name |
|- | |- | ||
|COLUMN_SIZE||N||3||Precision | |COLUMN_SIZE||N||3||Precision |
Revision as of 13:32, 18 January 2013
Contents
Purpose
Description of a table’s optimal set of columns that uniquely identifies a row
See Also
DATA TYPES, SELECT, SYSTEM TABLES
Description
System Tables are system defined read-only tables. You can query these tables using the SELECT statement.
Column | Data Type | Width | Description |
---|---|---|---|
SCOPE | N | 1 | Actual scope of result |
COLUMN_NAME | C | 30 | Column name |
DATA_TYPE | N | 2 | SQL data type |
TYPE_NAME | C | 30 | Data source dependent type name |
COLUMN_SIZE | N | 3 | Precision |
BUFFER_LENGTH | N | 1 | Reserved |
DECIMAL_DIGITS | N | 2 | Scale |
PSEUDO_COLUMN | N | 1 | Is this a pseudo column? |
Example
SELECT column_name FROM sysbestrowidentifier