Showing posts with label alter column. Show all posts
Showing posts with label alter column. Show all posts

Wednesday, 15 February 2012

SQL: the alter table statement

   


In SQL we usually create tables, pre-deciding the columns and their characteristics, like default values and data types. It is possible to insert new columns and eventually alter them afterwards, using the alter table statement.
In the following post we are going to see what we can do with it.

With alter table, we can add, change the data type or delete a column inside a table.