Review the docs on ALTER TABLE. There is no ALTER TABLE DROP COLUMN in DB2.
RENAME TABLE yourtab to yourtab_old;
If the table is small:
CREATE TABLE yourtab
(table def without unwanted column)
AS
(SELECT [column_list] from yourtab_old);
commit;
For larger tables:
CREATE TABLE yourtab...
Yes, you can run both versions on AIX. I've also done this on Solaris.
The major levels (6/7) install the code in seperate directories (i.e. /usr/lpp/db2_06 and /usr/lpp/db2_07_01 on AIX, /opt/IBMdb2/V6.1 and /opt/IBMdb2/V7.1 on Solaris).
Be sure to apply FixPak2a or higher.
Create new...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.