开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜