数据库 笔记

UUID: 

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)

 

 

posted @ 2013-07-05 16:03  安娜不会苏  阅读(99)  评论(1)    收藏  举报