change column type mysql
snippet in sql

sql change column types

user5663

ALTER TABLE table_name
ALTER COLUMN column_name datatype;

-- Example
ALTER TABLE product
ALTER COLUMN description VARCHAR(250);

add new column to the table mysql

user4990

ALTER TABLE `TABLE_NAME` 
	ADD `COLUMN_NAME` VARCHAR(50) NULL
    AFTER `COLUMN_NAME_AFTER`;

alter table add column

user7754

ALTER TABLE table_name
ADD column_name datatype; 

change column type mysql

user5041


ALTER TABLE table_name

ALTER COLUMN column_name datatype; 

alter table

user1979


ALTER TABLE table_name

ADD column_name datatype;