Chapter 3 DBMS Reference Guide
You can define values for the following common entries for the Domain object in the DBMS definition.
Entry | Example (Sybase Adaptive Server Anywhere 6) |
---|---|
Enable | Enable = Yes |
Maxlen | MaxLen = 30 |
Create |
create datatype %DOMAIN% %DATATYPE% [%NOTNULL%] [default %DEFAULT%] [check (%CONSTRAINT%)] |
Drop |
if exists(select 1 from systypes where name='%DOMAIN%')then drop datatype %DOMAIN% end if |
SqlListQuery |
{@OBJTCODE id, DTTPCODE, LENGTH, PREC} Select d.type_name, t.domain_name, d.width, t."precision" from sysusertype d, sysdomain t where d.domain_id=t.domain_id and d.domain_id <> 25 and d.domain_id <> 26 and creator <> 0 |
SqlAttrQuery |
{@OBJTCODE id, DTTPCODE, LENGTH, PREC, DEFAULT, CONSTRAINT} Select d.type_name, t.domain_name, d.width, d.scale, d."default", d."check" from sysusertype d, sysdomain t where d.domain_id=t.domain_id and d.domain_id <> 25 and d.domain_id <> 26 and creator <> 0 |
ModifiableAttributes | List of extended attributes that will be taken into account in the merge dialog box during database synchronization |
ReversedStatements | List of statements that will be reverse engineered |
For a description of each of the common object entries, see section "Common object entries".
Copyright (C) 2005. Sybase Inc. All rights reserved. |