Link to home
Start Free TrialLog in
Avatar of Rowby Goren
Rowby GorenFlag for United States of America

asked on

Mysql command via phpmyadmin to search and replace one row of data.

Hello  I am in phpmyadmin version  3.4.11.1

I have a mysql database that I want to search and replace a row of data under these conditions.

IT will search the Created By column for exactly the number 62 and replace it with exactly the number 522

I have backed up my mysql database.

THanks!

RowbyUser generated image
ASKER CERTIFIED SOLUTION
Avatar of Chris Stanyon
Chris Stanyon
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
UPDATE yourtable set created_by = 522 WHERE created_by = 62
Try:

UPDATE table_name SET created_by = '522' WHERE created_by = '62'
@Roads - 1 sec :)
Avatar of Rowby Goren

ASKER

I guess  ChrisStanyon beat you all by seconds!  :)

Thanks everyone!   The solution worked.  

Rowby
Or I should say by ONE second! :)