Source: http://psoug.org/definition/SYS_GUID.htm
Example:
select sys_guid() from dual; evaluates to 717A66D4915946D59152CC7FD4F517CC (in this instance).
select rawtohex(sys_guid()) from dual; evaluates to CCDE794E51F8442F99505E5EFF83FCA3 (in this instance).
One place this can be useful is in the generation of CCR, CCD, or CDA documents, where an unique identifier is required within the XML.
Another place this can be useful is as a default value for a primary key column. However, I prefer to use a sequence and a table trigger, so the primary keys are nice, sequential and clean.
Another place this can be useful is as a default value for a primary key column. However, I prefer to use a sequence and a table trigger, so the primary keys are nice, sequential and clean.
No comments:
Post a Comment