Sql server alter column

This article is tagged with: Sql server alter column and mysql

sql alter column size

ALTER TABLE table_name
ALTER COLUMN column_name datatype;

sql server alter column

ALTER TABLE table_name
ALTER COLUMN column_name new_data_type(size);

alter column type

ALTER TABLE table_name
ALTER COLUMN column_name datatype;

sql change column types

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

sql add column

ALTER TABLE Customers
ADD Email varchar(255);

sql server change column type

ALTER TABLE table_name
DROP COLUMN column_name;

This article is tagged with: Sql server alter column and mysql