查Oracle函数文档 https://docs.oracle.com/cd/E11882_01/server.112/e41084/functions.htm#SQLRF006 ,没有找到得到uuid的函数,自己造一个。
create or replace function uuid return varchar is guid varchar(32); begin guid := lower(rawtohex(sys_guid())); return substr(guid,1,8)||'-'||substr(guid,9,4)||'-'||substr(guid,13,4)||'-'||substr(guid,17,4)||'-'||substr(guid,21,12); end ;