Subject | RE: [IBDI] Re: DEFAULT Values |
---|---|
Author | Dmitry Yemanov |
Post date | 2001-02-24T15:58:49Z |
Hi Helen,
values should be kept as they are. I meant how I can change the DEFAULT
value to force the engine to use it in all subsequent inserts instead of the
old one. It is not allowed in IB by using ALTER TABLE ALTER COLUMN
statement. ALTER DOMAIN statement modifies RDB$FIELDS only and doesn't touch
RDB$RELATION_FIELDS, so I cannot use it for this purpose either.
The reason I'm asking this question is that the SQL92 spec defines a way to
set/drop DEFAULT value for any column.
Cheers,
Dmitry
> Well, I don't see how changing the default would give the engine any clueMaybe I wasn't clear enough. I was talking about inserts only. Existing
> as to what to do about existing values in the column. How would it know
> which rows which = the old default value were populated from the
> constraint and which were actual data?
>
> DEFAULT works only on inserts...
values should be kept as they are. I meant how I can change the DEFAULT
value to force the engine to use it in all subsequent inserts instead of the
old one. It is not allowed in IB by using ALTER TABLE ALTER COLUMN
statement. ALTER DOMAIN statement modifies RDB$FIELDS only and doesn't touch
RDB$RELATION_FIELDS, so I cannot use it for this purpose either.
The reason I'm asking this question is that the SQL92 spec defines a way to
set/drop DEFAULT value for any column.
Cheers,
Dmitry