Escriba lo siguiente y pulse Intro: Sintaxis QUITComplete para modificar una tabla La sintaxis completa de la instrucción SQL para alterar una tabla es la siguiente; vista a través de ella y leer la explicación más abajo: ALTER TABLE ALTER Sintaxis [LÍNEA | OFFLINE] [Ignorar] alter_specification TABLE tbl_name [,] ... alter_specification alter_specification: table_options | ADD [COLUMNA] column_definition col_name [PRIMER | DESPUÉS col_name] | ADD [COLUMNA] (column_definition col_name, ...) | AÑADIR {ÍNDICE | KEY} [index_name] [index_type] (index_col_name, ...) [index_option] ...
| ADD [CONSTRAINT [símbolo]] PRIMARY KEY [index_type] (index_col_name, ...) [index_option] ... | ADD [CONSTRAINT [símbolo]] UNIQUE [ÍNDICE | KEY] [index_name] [index_type] (index_col_name, ...) [index_option] ... | AÑADIR FULLTEXT [ÍNDICE | KEY] [index_name] (index_col_name, ...) [index_option] ... | AÑADIR ESPACIAL [ÍNDICE | KEY] [index_name] (index_col_name, ...) [index_option] ... | ADD [CONSTRAINT [símbolo]] FOREIGN KEY [index_name] (index_col_name, ...
) reference_definition | ALTER [COLUMNA] col_name {SET DEFAULT literal | DROP DEFAULT} | CAMBIO [COLUMNA] old_col_name new_col_name column_definition [PRIMER | DESPUÉS col_name] | MODIFICAR [COLUMNA] column_definition col_name [PRIMER | DESPUÉS col_name] | DROP [COLUMNA] col_name | DROP PRIMARY KEY | DROP {ÍNDICE | KEY} index_name | DROP FOREIGN KEY símbolo_clave_foránea | DISABLE KEYS | HABILITAR TECLAS | RENAME [A] new_tbl_name | ORDER BY col_name [, col_name] ...
| Convertir en CHARACTER SET charset_name [COLLATE charset] | [DEFAULT] CHARACTER SET [=] charset_name [Intercalar [=] charset] | DESCARTAR TABLESPACE | IMPORTACIÓN TABLESPACE | partition_options | ADD PARTITION (partition_definition) | Partition_names PARTITION DROP | COALESCE número de partición | REORGANIZE PARTICIÓN [partition_names EN (partition_definitions)] | ANALIZAR PARTITION {partition_names | ALL} | Partition check {partition_names | ALL} | OPTIMIZAR PARTITION {partition_names | ALL}