MySQL data storage question
How would开发者_JAVA技巧 I store the following code below its output
in my Mysql table? How would the field be made?
md5(uniqid(microtime(),1))
example.
field CHAR(128) NOT NULL
field CHAR(32) NOT NULL
The output of MD5() will always be 32 characters long
But of course you can save it in a binary format, in this case you should use:
field BINARY(16) NOT NULL
精彩评论