I want to change the value of a specific column within a search result in phpmyadmin. I could do it manually but the search results gives over 800 results. What solutions are there? Please appreciate that I am clearly not experienced with this so any replies would be good with great details.

link|improve this question
You expect "great details", but give us zero details to work on. – ErikA Aug 7 '11 at 20:48
I mistakenly voted to migrate, but this probably falls under the "don't migrate crap" philosophy". Give us some more details, and it may be salvagable. – ErikA Aug 7 '11 at 21:00
feedback

closed as not a real question by ErikA, Ben Pilbrow, Scott Pack, womble, Chopper3 Aug 7 '11 at 21:12

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. See the FAQ for guidance on how to improve it.

1 Answer

Should be very simple with a single SQL query. Since you didn't include any information about your search criteria or schema, you'll need to heavily modify this example:

mysql> update <table_name> set <column_name> = "<new_value>" where <conditions>;

Replace the angle-bracketed placeholders with values appropriate to your environment.

I'm not all that familiar with phpmyadmin, but I do recall there being an area where you can specify an arbitrary SQL query for it to execute.

Since you're very new to this, there's a very high likelihood that you'll mess things up, make sure to get a good backup of the database before performing this operation.

link|improve this answer
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.