Oracle UUID SYS_GUID

Oracle???RAW(16)??SYS_GUID()??????????(byte order)????GUID?????

??GUID? 265B113F-0E9D-F44D-A9D4-18BC4D3E836C

RAW(16) ? 3F115B26 9D0E 4DF4 A9D4 18BC4D3E836C ??????????????????

???????????????????????

SELECT Regexp_Replace(Lower(Sys_Guid()),
                       '(.{2})(.{2})(.{2})(.{2})(.{2})(.{2})(.{2})(.{2})(.{4})',
                       '\4\3\2\1-\6\5-\8\7-\9-') AS Dummy
FROM   Dual
CONNECT BY Rownum <= 20;

 

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注