Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add a column to a DB2/400 table with a specific ordinal position

Is there an SQL command on the AS400/iSeries/System-i/whatever to add a column to a table in a specific ordinal position, or moving an existing column to a different position?

like image 609
jwl Avatar asked Oct 20 '09 15:10

jwl


1 Answers

IBM i 7.1 now allows you to add a column in front of another.

ALTER TABLE table ADD COLUMN colname ... BEFORE othercolumn

like image 123
David G Avatar answered Sep 25 '22 10:09

David G