alter table TEST modify AAA not null;

解决方案 »

  1.   

    但是我用了这条命令后,修改不了,我不知道错在哪里:
    SQL> alter table student modify classid not null;
    alter table student modify classid not null
    *
    ERROR 位于第 1 行:
    ORA-02296: 无法启用 (GRACE.) - 找到空值谢谢哪位大侠告诉一下,谢谢了!
      

  2.   

    --找出空值
    select * from student  where classid  is null;
    --方式1想办法补上空值
    --方式2删除空值
    delete from student  where classid  is null;
    commit;--添加非空限制
    alter table student modify classid not null;