Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » ElevateDB Technical Support » Support Forums » ElevateDB SQL » View Thread |
Messages 1 to 4 of 4 total |
RENAME Column leaves column in place ... |
Sun, Dec 4 2011 9:45 AM | Permanent Link |
AdamBrett Fullwell Mill | I run the following 2 statements in order:
ALTER TABLE People ADD COLUMN "XID" INTEGER GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1) NOT NULL ALTER TABLE "People" DROP CONSTRAINT "PK_People", DROP COLUMN ID, RENAME COLUMN XID TO ID, ADD CONSTRAINT "PK_People" PRIMARY KEY ("ID"), ALTER COLUMN ID MOVE TO 1, ALTER COLUMN ID AS INTEGER DEFAULT UID() NOT NULL I am basically replacing 1 primary key field with another & cleaning up some things at the same time. I would expect the above: RENAME COLUMN XID TO ID, to result in XID ceasing to be present on the table. However after I run it, I have an ID field and the XID field remains. ... not a big problem ... but not really EDB working as I would expect. I just have to add a DROP COLUMN XID statement to the SQL. Is this part of a SQL standard, or something else? |
Mon, Dec 5 2011 4:34 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | Adam
1. I'd agree with your assumption (haven't tested it though) 2. Which version of ElevateDB (it may be version specific) 3. I'd report this direct to Tim via EMail Roy Lambert [Team Elevate] |
Mon, Dec 5 2011 6:52 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Adam,
<< Is this part of a SQL standard, or something else? >> It's probably a bug, but it may be fixed also if you're using an older version/build. -- Tim Young Elevate Software www.elevatesoft.com |
Wed, Dec 7 2011 7:07 AM | Permanent Link |
AdamBrett Fullwell Mill | >><< Is this part of a SQL standard, or something else? >> >>It's probably a bug, but it may be fixed also if you're using an older >>version/build. YUP. I was on build 6. (I think!) |
This web page was last updated on Tuesday, May 7, 2024 at 02:40 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |