Alter Table Statement
The Text driver supports the Alter Table statement to add one or more columns to a table or to delete (drop) a single column.
The Alter Table statement has the form:
ALTER TABLEtable_name{ADDcolumn_namedata_type| ADD(column_namedata_type[,column_namedata_type]... ) | DROP[COLUMN]column_name}
table_nameis the name of the table to which you are adding or dropping columns.
column_nameassigns a name to the column you are adding or specifies the column you are dropping.
data_typespecifies the native data type of each column you add.For example, to add two columns to the emp table:
You cannot add columns and drop columns in a single statement, and you can drop only one column at a time. For example, to drop a column:
The Alter Table statement fails when you attempt to drop a column upon which other objects, such as indexes or views, are dependent.