Oracle 生成Guid

  select sys_guid() from dual
Oracle 生成多个Guid

  select sys_guid() from dual connect by rownum<10
Oracle 生成带''-"的Guid
SELECT SUBSTR(GUID, 1, 8) || '-' || SUBSTR(GUID, 9, 4) || '-' ||
       SUBSTR(GUID, 13, 4) || '-' || SUBSTR(GUID, 17, 4) || '-' ||
       SUBSTR(GUID, 20, 12) GUID
  FROM (SELECT SYS_GUID() GUID FROM DUAL)

 

posted on 2018-11-26 17:34  许一朵岁月  阅读(6240)  评论(0编辑  收藏  举报