Difference between revisions of "SYSTYPEINFO"

From Lianjapedia
Jump to: navigation, search
 
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Description of all data types supported by the database
 
Description of all data types supported by the database
 
  
 
==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 30: Line 27:
 
|CASE_SENSITIVE||L||1||Is it case sensitive?
 
|CASE_SENSITIVE||L||1||Is it case sensitive?
 
|-
 
|-
|SEARCHABLE||N||1||Can you use "WHERE" based on this type?
+
|valign="top"|SEARCHABLE||valign="top"|N||valign="top"|1||Can you use "WHERE" based on this type?
 
|-
 
|-
 
|UNSIGNED_ATTRIBUTE||L||1||Is it unsigned?
 
|UNSIGNED_ATTRIBUTE||L||1||Is it unsigned?
Line 36: Line 33:
 
|FIXED_PREC_SCALE||L||1||Can it be a money value?
 
|FIXED_PREC_SCALE||L||1||Can it be a money value?
 
|-
 
|-
|AUTO_INCREMENT||L||1||Can it be used for an auto-increment value?
+
|valign="top"|AUTO_INCREMENT||valign="top"|L||valign="top"|1||Can it be used for an auto-increment value?
 
|-
 
|-
 
|LOCAL_TYPE||C||30||Localized version of type name
 
|LOCAL_TYPE||C||30||Localized version of type name
Line 51: Line 48:
 
|-
 
|-
 
|}
 
|}
 
  
 
==Example==
 
==Example==
Line 57: Line 53:
 
SELECT * FROM systypeinfo
 
SELECT * FROM systypeinfo
 
</code>
 
</code>
 
  
 
==Products==
 
==Products==
Recital, Recital Server
+
Lianja, Lianja Server
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:SQL]]
 
[[Category:SQL]]
 
[[Category:System Tables]]
 
[[Category:System Tables]]

Latest revision as of 10:50, 31 January 2013

Purpose

Description of all data types supported by the database

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
TYPE_NAME C 30 Type name
DATA_TYPE N 3 SQL data type
PRECISION N 3 Maximum precision
LITERAL_PREFIX C 1 Prefix used to quote a literal
LITERAL_SUFFIX C 1 Suffix used to quote a literal
CREATE_PARAMS C 30 Parameters used in creating the type
NULLABLE N 1 Can you use NULL for this type?
CASE_SENSITIVE L 1 Is it case sensitive?
SEARCHABLE N 1 Can you use "WHERE" based on this type?
UNSIGNED_ATTRIBUTE L 1 Is it unsigned?
FIXED_PREC_SCALE L 1 Can it be a money value?
AUTO_INCREMENT L 1 Can it be used for an auto-increment value?
LOCAL_TYPE C 30 Localized version of type name
MINIMUM_SCALE N 2 Minimum scale supported
MAXIMUM_SCALE N 2 Maximum scale supported
SQL_DATA_TYPE N 1 Reserved
SQL_DATETIME_SUB N 1 Reserved
NUM_PREC_RADIX N 2 Usually 2 or 10

Example

SELECT * FROM systypeinfo

Products

Lianja, Lianja Server