Alter
a description of sql alter Statement
ALTER TABLE ADD
syntax
ALTER TABLE TableName
ADD NewCollumName DataType;Example
ALTER TABLE customer
ADD Email varchar(255);adds a collum Email to table customer
ALTER TABLE DROP COLLOM
syntax
ALTER TABLE tableName
DROP COLUMN CollumnName;removes a collumn from a table
Example
removes column from table
ALTER RENAME COLUMN
syntax
ALTER COLUMN Datatype
syntax
the datatype speseficy what we would like to be stored in a collums fields for available Datatype check datatype page
Last updated