Oracle 生成Guid;Oracle 生成多個Guid;Oracle 生成帶''-"的Guid

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)
相關文章
相關標籤/搜索