Article View: borland.public.interbase.sql
Article #191Modify Primary Index
From: Ken Pfeiffer
Date: Tue, 05 Aug 2008 21:11
Date: Tue, 05 Aug 2008 21:11
20 lines
1676 bytes
1676 bytes
I am trying to modify a primary index on a table, by adding another key field. It would be nice to modify the existing index and just add the new field, but from a bit of research I have done it appears that the only way to do this is to drop the existing index and create a new one. The problem I am having is that when I attempt to drop the index with DROP INDEX RDB$PRIMARY143 I get an error "cannot delete index used by an integrity constant" and the operation fails. I suppose this is because the index contains a field identified as NOT NULL. Any ideas how to add another field to an existing primary index? I'd appreciate any help with this. Thanks!
Technical Details
Message-ID:
<4898c1dd$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,ee6c7f974eb6ad62,start X-Google-Attributes: gid114a0e,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Ken Pfeiffer" <kenp@sonultra.com> From: "Ken Pfeiffer" <kenp@sonultra.com> Newsgroups: borland.public.interbase.sql Subject: Modify Primary Index Date: Tue, 5 Aug 2008 14:11:03 -0700 Lines: 22 Organization: Sonultra X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 72.194.213.173 Message-ID: <4898c1dd$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1217970653 72.194.213.173 (5 Aug 2008 14:10:53 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail X-Original-Bytes: 1490