You can unite all MODIFY:
ALTER TABLE imovel
MODIFY (ENDERECO VARCHAR(150),
BAIRRO VARCHAR(150)
);
NOTE: I don’t know if it is compatible with Mysql above!
But, you can also remove the "COLUMN" parameter, for Mysql:
ALTER TABLE imovel
MODIFY ENDERECO VARCHAR(150),
MODIFY BAIRRO VARCHAR(150);
As far as I know, the only one who has "[FUNÇÃO] COLUMN nome_da_coluna
" is the DROP
, this is "DROP COLUMN
".
But everything else is MODIFY nome_da_coluna
and ADD nome_da_coluna
, without including the COLUMN
in the name of the function.