update datatype mysql code example
Example 1: alter table add column
ALTER TABLE table
ADD COLUMN column VARCHAR (255) NOT NULL AFTER column;
Example 2: sql alter column size
ALTER TABLE table_name
ALTER COLUMN column_name datatype;
ALTER TABLE table
ADD COLUMN column VARCHAR (255) NOT NULL AFTER column;
ALTER TABLE table_name
ALTER COLUMN column_name datatype;