本帖最后由 xiaoyuanyuan2009 于 2011-06-02 11:45:50 编辑

解决方案 »

  1.   

    ALTER TABLE X id char(50) not null
      

  2.   

    restrict cascade   是在支持外键的引擎里用的,表示当更改父表的字段时是拒绝更改,还是级联给该,中括号里面的表示可选的,有时候可能会用到!
      

  3.   

    alter  table test1 add b int;
    alter table test1 drop b;
      

  4.   

    alter table b modify id char(50);