delete from sys.com$ where comment$='...'如果有多个字段用一个注释的话,删除就要注意了

解决方案 »

  1.   

    我查了一下
    好像是创建表的时候就自动加上了''注释某网站解释
    To drop a comment from the database, set it to the empty string ' '. 为何必须要删除掉?
      

  2.   

    我查了一下数据字典,user_col_comments,即使你没有建立comment也会有记录的,就是说oracle会自动增加的,因此你肯定是没有必要删除了(如bzszp(SongZip) 所说的),判断只需要根据是否为空来进行了!
      

  3.   

    好像真的不能删除
    delete from sys.com$ where comment$='...'达到的效果实际也是set empty
    谢谢各位了,问题已解决
    我把all_column_comments定制了,多加了字段。
    thx everyone