ALTER TABLE Command
|
Previous Top Next |
ADD ( [ [ IF NOT EXISTS ] column_definition ] [, ... ] [ index_definition ] [, ... ] )
|
| MODIFY ( [ column_definition ] [, ... ] )
|
| DROP ( [ column_name ] [, ... ] )
|
| RENAME [ COLUMN ] old_column_name [ TO ] new_column_name
|
| RENAME [ TABLE ] [ TO ] new_table_name
|
If MEMORY keyword is specified before the table_name then an in-memory table will be altered, not a disk one.
|
The name of the table to be altered.
|
Adds the new column(s) and index(es) using the same syntax as CREATE TABLE.
|
If this keyword is specified, the coulmn will be created, only if there is no existing column with the same name. If this keyword is not specified and the column already exists, an exception will be raised.
|
Changes the column(s) settings such as data type, size, default value, etc..
|
Deletes the specified column(s).
|
Changes a name of a column to the new_column_name value.
|
Changes a name of a table to the new_table_name value.
|
ALTER TABLE employee ADD (height Float);
|