本帖最后由 apiaoz 于 2012-06-14 21:39:16 编辑

解决方案 »

  1.   

    更新为空值,要不是删除该节点,要不就是给该节点空值吧查了下文档,的确如此
    http://docs.oracle.com/cd/B28359_01/server.111/b28286/functions213.htm
    里说了
    If you update an XML element to null, then Oracle removes the attributes and children of the element, and the element becomes empty. If you update the text node of an element to null, Oracle removes the text value of the element, and the element itself remains but is empty.
    还有篇文章
    http://forums.asp.net/t/1348399.aspx/1
    给出如下方案
    UPDATE XmlTest SET XmlDesc = '<xml></xml>' WHERE ID IS NULL