alter table modify code example
Example 1: mysql alter table add column
ALTER TABLE vendors ADD COLUMN phone VARCHAR(15) AFTER name;
Example 2: sql change column types
ALTER TABLE table_name
ALTER COLUMN column_name datatype;
-- Example
ALTER TABLE product
ALTER COLUMN description VARCHAR(250);
Example 3: alter table modify column
-- ORACLE 18c
ALTER TABLE table_name
MODIFY column_name datatype;
-- Example
ALTER TABLE product
MODIFY description VARCHAR2(500 char);