Menu Bar

SQL: Alter

Chapter 7:
Alter: Add new column, change a column name, change the datatype of a   column and increase the size of any column

  1. Add new column
  2. Drop Column:
  3. Change the column data type
  4. Change the column size
  5. Change column name



select all records from students table:





Drop one column using alter command:







Check whether column is dropped or not?






Add one column using alter command:




Check whether column is added or not?




Change data type using alter command:



Check whether data type is updated or not?