Jump to content

Inserting a random MD5 into SQL


CanMan2004

Recommended Posts

Hi all

 

I have a sql table called "member_details" and I have a field in that table called "myid", currently there is about 2,500 records in this table.

 

I need to populate the field "myid" with a random MD5 string, such as

 

2f35400aba6fe42f51f48acc34b35e11

 

This is not a password, it's simply a ID number for each person.

 

Is there a way to run a query in phpMyAdmin on the whole table "members_details" which will add in a MD5 string into the field "myid", without having to go through insert one manually.

 

Any help would be great

 

Thanks in advance

 

Ed

Link to comment
https://forums.phpfreaks.com/topic/36641-inserting-a-random-md5-into-sql/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.