Nevermind. It's 2016 and apparently like many things it isn't available on IBM i.
http://requirements.common.org/powerbase/view/ideasIBM.htm?db=ideasIBM&Where=ID%20=%20295
Sigh.
Guess I have to spend several hours doing a rename instead of 5 seconds to script the permissions, triggers, constraints, create new table, deactivate identity column, migrate data from old table to new table, reactivate identity column, drop old table, do a rain dance.
-----Original Message-----
From: Matt Olson [mailto:Matt.Olson@xxxxxxxx]
Sent: Thursday, March 3, 2016 3:07 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: Rename column in SQL?
I'm trying to rename a column, simple task I know. But for some reason the following syntax is not working:
ALTER TABLE APPLICATIONS RENAME COLUMN PASSWORDHISTORYENABLED TO PASSWORDHISTORYENABLED FOR PASSHISTEN;
I wish to rename the column (long name is PASSWORDHISTORYENABLED and is staying the same), just trying to fix the "System Name" which is unique to IBM I's flavor of DB2 and set it to PASSHISTEN (10 character limit).
Thoughts?
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
http://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related questions.
As an Amazon Associate we earn from qualifying purchases.