Subject | Re: [firebird-support] Alter Domain |
---|---|
Author | Martijn Tonies |
Post date | 2004-09-28T10:15:38Z |
Hi,
Database Workbench and modified the domain in the
Domain Editor to show you what a decent GUI tool can do
for you... ;-)
The DDL generated for this change:
ALTER DOMAIN DM_MODETYPE DROP CONSTRAINT;
ALTER DOMAIN DM_MODETYPE ADD CONSTRAINT CHECK (VALUE IN ('C','O', 'S', 'V',
'L'));
With regards,
Martijn Tonies
Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL
Server.
Upscene Productions
http://www.upscene.com
> Is it possible to alter the check clauses in a domainJust for fun, I ran the first CREATE DOMAIN statement in
>
> I have the following domain
>
> CREATE DOMAIN dm_ModeType AS CHAR(1)
> CHECK (VALUE IN ('C','O', 'S', 'V'));
>
> and the domain must now be changed to
>
> CREATE DOMAIN dm_ModeType AS CHAR(1)
> CHECK (VALUE IN ('C','L','O', 'S', 'V')); ==> added 'L'
Database Workbench and modified the domain in the
Domain Editor to show you what a decent GUI tool can do
for you... ;-)
The DDL generated for this change:
ALTER DOMAIN DM_MODETYPE DROP CONSTRAINT;
ALTER DOMAIN DM_MODETYPE ADD CONSTRAINT CHECK (VALUE IN ('C','O', 'S', 'V',
'L'));
With regards,
Martijn Tonies
Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL
Server.
Upscene Productions
http://www.upscene.com