日期:2014-05-17  浏览次数:20843 次

修改列属性,菜鸟求救
alter table cp_test alter column name set not null;哪里错了

------解决方案--------------------
alter table cp_test modify column_name not null ;
------解决方案--------------------
应该使用modify
------解决方案--------------------
alter table cp_test modify column_name not null ;
正解
------解决方案--------------------
alter table table_name modify colunm_name not null
------解决方案--------------------
语法上 同一条语句中 有两个 alter是不行滴!