首页 > 技术文章 > sql操作table

ymj126 2014-05-08 10:14 原文

1、增加表字段

    alter table tbsptrustquotdoc(表名)  add  chargeapplystate(字段名) char(1)(类型) default '1'(默认值)

2、修改字段类型

       a、数据为空的情况

       alter table 表名 modify (字段名  字段类型)

                             

推荐阅读