Article View: borland.public.interbase.sql
Article #11224Setting not NULL constraint afterwards
From: Mika Parjanen
Date: Thu, 12 Dec 2002 07:08
Date: Thu, 12 Dec 2002 07:08
16 lines
1305 bytes
1305 bytes
Hi, just a simple question: How can I set a field NOT NULL constraint afterwards. There is a lot of data in that table and too much depencies so I cannot drop and recreate that field again. I suppose "DEFAULT 0" would also be enough. This is a problem because I have triggers which increment and decrement that value and that can't be done if value is NULL. Thanks for reading Mika Parjanen
Technical Details
Message-ID:
<3df8363f$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!news.uni-x.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 114a0e,71b50d57bbdad000,start X-Google-Attributes: gid114a0e,public X-Google-ArrivalTime: 2002-12-11 23:15:20 PST From: "Mika Parjanen" <mika.parjanen@nisamest.fi> Newsgroups: borland.public.interbase.sql Subject: Setting not NULL constraint afterwards Date: Thu, 12 Dec 2002 09:08:54 +0200 Lines: 18 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 NNTP-Posting-Host: 194.100.71.66 Message-ID: <3df8363f$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1039676991 194.100.71.66 (11 Dec 2002 23:09:51 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!news.uni-x.net!newsgroups.borland.com!not-for-mail