MySQL Tutorial/Miscellaneous Functions/UUID
UUID() returns a number that is globally unique in space and time.
mysql>
mysql> SELECT UUID();
+--------------------------------------+
| UUID() |
+--------------------------------------+
| 14185158-8adb-102a-8f5c-03475dfdde5e |
+--------------------------------------+
1 row in set (0.00 sec)
mysql>