修改数据库某表中的某字段类型的SQL语句

alter table 表名 alter column 列名 数据类型  not null

最后的not null 是该字段不允许为null,一般是可以为null的,把not去掉即可

猜你喜欢

转载自blog.csdn.net/dd2016124/article/details/109306159