0

I want a column in my table to generate a unique, collision free string without having to re-check the table. What's the easiest way to do this? It does not need to be random, however I would prefer not to just stringify the primary key.

Fred Johnson
  • 2,539
  • 3
  • 26
  • 52
  • 1
    [`UUID()`](https://dev.mysql.com/doc/refman/5.7/en/miscellaneous-functions.html#function_uuid) – BenM Jan 10 '22 at 11:28
  • Or this? https://stackoverflow.com/questions/39257391/how-do-i-generate-a-unique-random-string-for-one-of-my-mysql-table-columns/39259742 – Nico Haase Jan 10 '22 at 11:29

0 Answers0