Difference between revisions of "SYSBESTROWIDENTIFIER"

From Lianjapedia
Jump to: navigation, search
 
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Description of a table’s optimal set of columns that uniquely identifies a row
 
Description of a table’s optimal set of columns that uniquely identifies a row
 
  
 
==See Also==
 
==See Also==
 
[[SQL Data Types|DATA TYPES]], [[SQL SELECT|SELECT]], [[SQL System Tables|SYSTEM TABLES]]
 
[[SQL Data Types|DATA TYPES]], [[SQL SELECT|SELECT]], [[SQL System Tables|SYSTEM TABLES]]
 
  
 
==Description==
 
==Description==
 
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" width="100%"
{| class="wikitable"
+
 
!Column||Data Type||Width||Description
 
!Column||Data Type||Width||Description
 
|-
 
|-
Line 20: 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
Line 31: Line 28:
 
|-
 
|-
 
|}
 
|}
 
  
 
==Example==
 
==Example==
Line 38: Line 34:
 
</code>
 
</code>
  
 
==Products==
 
Recital, Recital Server
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:SQL]]
 
[[Category:SQL]]
 
[[Category:System Tables]]
 
[[Category:System Tables]]

Latest revision as of 10:37, 31 January 2013

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