Created
March 28, 2016 15:28
-
-
Save jclement/2fab033d036f55376bac to your computer and use it in GitHub Desktop.
Generate a GUID in form "1ce9b033-d9fa-452a-8767-970fb0548eb4" from Oracle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select lower(regexp_replace(rawtohex(sys_guid()), '([A-F0-9]{8})([A-F0-9]{4})([A-F0-9]{4})([A-F0-9]{4})([A-F0-9]{12})', '\1-\2-\3-\4-\5')) from dual |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment