ALTER TABLE

Syntax: 

ALTER TABLE [catalog-name.]table-name alteration-action

alteration-action:
RENAME TO new-table-name

alteration-action:
ADD [COLUMN] column-def[, column-def]*

alteration-action:
DROP [COLUMN] column-name[, column-name]*

alteration-action:
MODIFY [COLUMN] column-name new-type-def[, column-name new-type-def]*

alteration-action:
RENAME COLUMN existing-column-name TO new-column-name[, existing-column-name TO new-column-name]
	

The ALTER TABLE is used to change the properties of a table.

GDBase's version of the ALTER TABLE command allows the user to rename a table, add, remove and change the type of a new or existing column.

It is possible to have a multiple of any one of ADD, DROP or MODIFY clauses in a single ALTER TABLE statement by separating them with commas. However, combining ADD, DROP or MODIFY clauses in one statement is forbidden. For example, to do multiple ADD operations in a single statement, one can use the following:

ALTER TABLE mytable ADD COLUMN name varchar, age int;