Sql modify column

This article is tagged with: Sql modify column and mysql

add column sql

ALTER TABLE Customers
ADD Email varchar(255);

alter table modify column

-- ORACLE 18c
ALTER TABLE table_name
MODIFY column_name datatype;
-- Example
ALTER TABLE product
MODIFY description VARCHAR2(500 char);

alter column type

ALTER TABLE table_name
ALTER COLUMN column_name datatype;

sql modify column

ALTER TABLE table_name
ALTER COLUMN column_name datatype;
--ex.
ALTER TABLE Customers
ADD Email varchar(255);

alter column sql

ALTER TABLE table_name
ALTER COLUMN column_name datatype;

This article is tagged with: Sql modify column and mysql