sql 数据表添加或删除或修改字段 alter

给表student添加字段 score

alter table student  add  score  int

删除表student中字段 score

alter table student drop column score

注:column是必须要有的!刚开始我没加老是出错!

修改表student中字段 score 属性

alter table student alter column score datetime

posted @ 2012-03-16 17:37  偶不是大叔  阅读(517)  评论(0编辑  收藏  举报