For example with the following query I can select all the records I want to change, but then how do do the change? e.g. change all occurences of "seven" to "four"?
SELECT * FROM `templates` WHERE `attrib_B` LIKE `seven`
This is how I think of it in pseudo code:
if `attrib_B` like `seven`:
set `attrib_B` = `four`
Thanks.
[for myPHPAdmin as per original question verbiage]
You can use either the table editor to change the data rows manually (via web interface) or run a SQL UPDATE statement.
Manually updating via web interface:
Running a SQL UPDATE statement (faster as you can do them all at once):
Use this SQL statement to update all the rows:
UPDATE 'templates' SET 'attrib_B'='four' WHERE 'attrib_B' LIKE 'seven'
Click the GO button to execute the statement
The question has already been answered, so I won't redo that but thought it might be handy to pass on a little tip for the future. It's helped me avoid excessive page turning of the manual many times.
An easy way to search the MySQL documentation is to use the URL http://dev.mysql.com/doc/, followed by your search term. e.g.
will search the online documentation for "insert ignore".