首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

how to use the "the alter table statement "

2012-10-05 
how to use the the alter table statement the alter table statement is used to modify ,add ,delete

how to use the "the alter table statement "
the alter table statement is used to modify ,add ,delete columns in an existing table
1 to add a column in a table ,use the following syntax:
alter table table_name add column_name datatype
2 to delete a column in a table ,use the following syntax
alter table table_name drop column column_name
3 to change the data type of a column in a table ,use the folloing
alter table table_name modify column_name datatype;

热点排行