Im trying to update a userName field in my database to a MD5 hash generated version of that persons userName. I have to do this to a lot of users so I was wondering if anyone out there has a quick mysql update query that will handle this, or if I should just write a function that will take care of it.
Something along theses lines:
UPDATE tblUser SET userName = ‘MD5 hash generated version of the userName’ WHERE userID IN (…)
Any thoughts?
Use the
MD5()function.