Created
December 18, 2022 18:11
-
-
Save mzuvin/a212843e21367411ceb33608fb260ced to your computer and use it in GitHub Desktop.
This file contains 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
```sql | |
SELECT | |
substr(hguid, 7, 2) || substr(hguid, 5, 2) | |
|| substr(hguid, 3, 2) || substr(hguid, 1, 2) || '-' | |
|| substr(hguid, 11, 2) || substr(hguid, 9, 2) || '-' | |
|| substr(hguid, 15, 2) || substr(hguid, 13, 2) || '-' | |
|| substr(hguid, 17, 4) || '-' | |
|| substr(hguid, 21, 12) | |
AS guid | |
FROM (SELECT hex(guid) AS hguid FROM messages) | |
```` | |
source: https://stackoverflow.com/a/62638803/9218468 |
Author
mzuvin
commented
Dec 18, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment