Вы находитесь на странице: 1из 4

? SYSTABLES , : tabtype CHAR(1) T = Table V = View P = Private synonym S = Public synonym (Type S is not available in an ANSI-compliant database.

e.) E = External Table : locklevel CHAR(1) B = Page (Bite) P = Page R = Row T = Table (XPS) SYSCOLUMNS (IDS 9.2+) , : coltype SMALLINT 0 = 0x0000 CHAR 1 = 0x0001 SMALLINT 2 = 0x0002 INTEGER 3 = 0x0003 FLOAT 4 = 0x0004 SMALLFLOAT 5 = 0x0005 DECIMAL 6 = 0x0006 SERIAL * 7 = 0x0007 DATE 8 = 0x0008 MONEY 9 = 0x0009 NULL 10 = 0x000A DATETIME 11 = 0x000B BYTE 12 = 0x000C TEXT 13 = 0x000D VARCHAR 14 = 0x000E INTERVAL 15 = 0x000F NCHAR 16 = 0x0010 NVARCHAR 17 = 0x0011 INT8 18 = 0x0012 SERIAL8 * 19 = 0x0013 SET 20 = 0x0014 MULTISET 21 = 0x0015 LIST 22 = 0x0016 Unnamed ROW 40 = 0x0028 Variable-length opaque type 4118 = Named ROW The coltype codes can be incremented by bitmaps showing the following features of the column. Bit Value Significance When Bit Is Set 0x0100 NULL values are not allowed (coltype value is incremented by 256 if the column does not allow NULL values) 0x0200 Value is from a host variable 0x0400 FLOAT-to-DECIMAL for networked database server 0x0800 DISTINCT data type 0x1000 Named ROW type 0x2000 DISTINCT type from LVARCHAR base type 0x4000 DISTINCT type from BOOLEAN base type 0x8000 Collection is processed on client system For example, the coltype value 4118 for named ROW types is the decimal representation of the hexadecimal value 0x1016, which is the same as the hexadecimal coltype value for an unnamed ROW type (0 x 016), with the

named-ROW-type bit set. (The file $INFORMIXDIR/incl/esql/sqltypes.h contains additional information about syscolumns.coltype codes.) SYSCONSTRAINTS , : constrtype CHAR(1) C = Check constraint N = Not NULL P = Primary key R = Referential T = Table U = Unique SYSINDEXES SYSINDICES (IDS 9+) : idxtype CHAR(1) U = Unique D = Duplicates allowed SYSFRAGMENTS , ( ): fragtype CHAR(1) I = Index T = Table , : strategy CHAR(1) R = Round-robin E = Expression-based I = IN DBSPACE clause specifies a specific location as part of fragmentation strategy T = Table-based fragmentation strategy H = Hash-based fragmentation strategy (XPS) SYSDEFAULTS , : type CHAR(1) C = Current L = Literal value ( default CHAR(256)) N = NULL S = Dbservername T = Today U = User SYSDISTRIB : mode CHAR(1) M = Medium H = High SYSOBJSTATE , : objtype CHAR(1) C = Constraint I = Index T = Trigger , (object mode) : state CHAR(1) D = Disabled E = Enabled F = Filtering with no integrity-violation errors G = Filtering with integrity-violation errors SYSPROCBODY data CHAR(256): datakey CHAR(1) D = User document text E = Creation time information L = Literal value (that is, literal number or quoted string) P = Interpreter instruction code (p-code)

R = Return value type list S = Routine symbol table T = Actual routine source SYSPROCEDURES : mode CHAR(1) D or d = DBA O or o = Owner P or p = Protected R or r = Restricted IDS 9.30 227 , d r. SYSREFERENCES cascading delete restrict rule: delrule CHAR(1) C = Cascading delete R = Restrict (default) SYSROLEAUTH , : is_grantable CHAR(1) Y = Grantable N = Not grantable SYSTABAUTH : tabauth CHAR(9) s or S = Select u or U = Update * = Column-level privilege; see syscolauth i or I = Insert d or D = Delete x or X = Index a or A = Alter r or R = References n or N = Under privilege (IDS) SYSTRIGBODY , data CHAR(256): datakey CHAR(1) A = ASCII text for the body, triggered actions B = Linearized code for the body D = English text for the header, trigger definition H = Linearized code for the header S = Linearized code for the symbol table SYSTRIGGERS , : event CHAR(1) D = Delete trigger I = Insert trigger S = Select trigger U = Update trigger SYSUSERS , : usertype CHAR(1) C = Connect (work within existing tables) D = DBA (all privileges) R = Resource (CREATE permanent tables, user-defined data types, and indexes) G = Role SYSXTDTYPES UDT(user-defined data type): mode CHAR(1)

B = Base (opaque) type C = Collection type or unnamed row type D = Distinct type R = Named row type ' ' (blank) = Built-in type

Оценить