All databases
systypes contains one row for each system-supplied and user-defined datatype. Domains (defined by rules) and defaults are given, if they exist.
You cannot alter the rows that describe system-supplied datatypes.
The columns for systypes are:
Name |
Datatype |
Description |
---|---|---|
uid |
int |
User ID of datatype creator |
usertype |
smallint |
User type ID |
variable |
bit |
1 if datatype is of variable length; 0 otherwise |
allownulls |
bit |
Indicates whether nulls are allowed for this datatype |
type |
tinyint |
Physical storage datatype |
length |
int |
Physical length of datatype |
tdefault |
int |
ID of system procedure that generates default for this datatype |
domain |
int |
ID of system procedure that contains integrity checks for this datatype |
name |
varchar(255) |
Datatype name |
printfmt |
varchar(255) null |
Reserved |
prec |
tinyint null |
Number of significant digits |
scale |
tinyint null |
Number of digits to the right of the decimal point |
ident |
tinyint null |
1 if column has the IDENTITY property; 0 if it does not |
hierarchy |
tinyint null |
Precedence of the datatype in mixed-mode arithmetic |
xtypeid |
int null |
The internal class ID |
xdbid |
int null |
The dbid where a class is installed:
|
accessrule |
int null |
The object ID of the access rule in sysprocedures |
Table 1-29 lists each system-supplied datatype’s name, hierarchy, type (not necessarily unique), and usertype (unique). The datatypes are ordered by hierarchy. In mixed-mode arithmetic, the datatype with the lowest hierarchy takes precedence:
Unique clustered index on name
Unique nonclustered index on usertype
Copyright © 2005. Sybase Inc. All rights reserved. |