Storing MySQL GUID/UUIDs
Posted
by thr
on Stack Overflow
See other posts from Stack Overflow
or by thr
Published on 2009-02-13T18:27:39Z
Indexed on
2010/06/07
21:02 UTC
Read the original article
Hit count: 180
This is the best way I could come up with to convert a MySQL GUID/UUID generated by UUID() to a binary(16):
UNHEX(REPLACE(UUID(),'-',''))
And then storing it in a BINARY(16)
Are there any implications of doing it this way that I should know of?
© Stack Overflow or respective owner