2
When using ALTER TABLE
to modify the column name in a table, we need to define the data type again:
ALTER TABLE tabela CHANGE COLUMN nome_antigo novo_nome tipo_dados;
If the data type is not defined, a syntax error. Every time we change the name of a column it is also necessary to declare the type of data or there is another simpler way?