Saturday, 31 August 2013

MySQL - generate unique 10 chars alphanumeric hashes

MySQL - generate unique 10 chars alphanumeric hashes

Hi i have a simple table with field called "hash" VARCHAR 10 UNIQUE FIELD
Now i would like to run a query and generate automatically the hashes
inside the field.
The problem is that the hashes has to be alpha-numeric and has to be long
10 chars and UNIQUE.
Has anyone any clue for this?

No comments:

Post a Comment