I am trying to generate a 36 character random string in MySQL using:
UPDATE my_table SET entity_uid = substring(MD5(RAND()) FROM 1 FOR 36);
but the result is always a 32 character string. Is there a way to get a longer string?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1 Answer