Subject | Re: Adding a NOT NULL column to a table |
---|---|
Author | Alexander V.Nevsky |
Post date | 2001-07-04T09:28:44Z |
--- In IBDI@y..., "Dmitry Yemanov" <dimitr_ex@y...> wrote:
filled accordingly rather sophisticated conditions and to have not
filled NULL values is the only way to check result of filling - any
value can be a result of filling and we can't recognize non-filled
records if there will be default value.
Best regards.
> Hi,become NULL
>
> If a table is altered to add a column, values of this new column
> for all rows already existing in a table. Even if this new columnhas NOT
> NULL option, the result is still the same. And we have values thatviolate
> NOT NULL constraint. AFAIK, the only way to avoid this problem is todefine
> DEFAULT option for the new column which will be used to populate itsvalues.
> Does anyone know what the SQL standard says about it? Should databecome
> inconsistent when DEFAULT option is not used?Hi, Dmitry. For me, it's NICE feature. Often such a column should be
>
> Cheers,
> Dmitry
filled accordingly rather sophisticated conditions and to have not
filled NULL values is the only way to check result of filling - any
value can be a result of filling and we can't recognize non-filled
records if there will be default value.
Best regards.