Created
November 16, 2016 17:06
-
-
Save jeffjohnson9046/f1aac6f808618dd47ed648f67ff0f5d3 to your computer and use it in GitHub Desktop.
MySQL - Generate a UUID and convert it to VARBAINARY(16) for storage
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
SELECT UNHEX(REPLACE(UUID(),'-','')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment