SyntaxFix
Write A Post
Hire A Developer
Questions
If you use MySQL with version higher than 5.7.4, you can use the newly added RANDOM_BYTES function:
SELECT TO_BASE64(RANDOM_BYTES(16));
This will result in a random string such as GgwEvafNLWQ3+ockEST00A==.
GgwEvafNLWQ3+ockEST00A==