To add columns to an existing table using the command line, enter:<br/>
ALTER TABLE table_name ADD column_name data_type null_attribute<br/>
<br/>
EX:<br/>
ALTER TABLE MyTable<br/>
ADD COLUMN1 VARCHAR(5) NOT NULL WITH DEFAULT<br/>
ADD COLUMN2 CHAR(3)
- Apr 29 Tue 2014 13:40
-
[DB2] How to adding columns to an existing table
請先 登入 以發表留言。