http://photo.163.com/openpic.php?username=ncowboy&pid=50440149&_dir=%2F2679231

解决方案 »

  1.   

    alter table TAB_NAME modify FIELD_NAME default sys_guid();
      

  2.   

    之前的插入和之后的查询是在同一个session 里么?如果不是,就应该在插入后commit才能在其他session中查找到新纪录。
      

  3.   

    非常感谢大家。问题解决了。
    我的连续两个太相似了。导致,看起来,想一样。你们的系统上是什么样子?
    是我的错。我没有仔细看。
    [oracle@lacl-001 /root]$sqlplusSQL*Plus: Release 10.1.0.2.0 - Production on Tue Sep 21 20:37:05 2004Copyright (c) 1982, 2004, Oracle.  All rights reserved.Enter user-name: lacl
    Enter password:Connected to:
    Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining optionsSQL> select sys_guid() from dual;SYS_GUID()
    --------------------------------
    E498E42748D81CF3E03073CA38A9162CSQL> /SYS_GUID()
    --------------------------------
    E498E42748D91CF3E03073CA38A9162CSQL> /SYS_GUID()
    --------------------------------
    E498E42748DA1CF3E03073CA38A9162CSQL>