drop function get_custom_guid;
create function get_custom_guid
return varchar2 is
l_guid varchar2(36);
begin
select substr(guid,0,8) || '-' || substr(guid, 9,4) || '-' || substr(guid, 13,4)|| '-' || substr(guid, 17,4) || '-' || substr(guid,21)<
into l_guid from (select sys_guid() as guid from dual) ;
return l_guid;
end;
select get_custom_guid() guid from dual;
Labels
- design patterns software (1)
- external ip (1)
- gmail java mail connect smtp (1)
- install (1)
- java oracle apps jdbc log base 2 (1)
- macbook pro (1)
- oci8 driver (1)
- Oracle (1)
- php (1)
- SugarCRM (1)
Tuesday, February 9, 2016
Get a custom GUID in Oracle
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment