Mike Miller
07-10-2011, 08:55 PM
Hi guys,
I have a content management system that allows me to add/edit/delete entries in our site's database. I'm trying to update a column in a table that has different values. One of the values is "Unknown." and I'm trying to replace all instances with "Not available." Here's the code:
Code:
UPDATE axes
SET req = "Not available."
WHERE req = "Unknown.";
Simple, right? It does work - the changes show up when I view the entries in the DB; however, when I go visit one of the entries to see if the changes were made, I still see "Unknown." in the req field. In other words, the site does not display the change.
Any idea why this is happening? I do not want to manually go through each entry with the unknown value, as there are over 1000 such entries.
Thanks much!
I have a content management system that allows me to add/edit/delete entries in our site's database. I'm trying to update a column in a table that has different values. One of the values is "Unknown." and I'm trying to replace all instances with "Not available." Here's the code:
Code:
UPDATE axes
SET req = "Not available."
WHERE req = "Unknown.";
Simple, right? It does work - the changes show up when I view the entries in the DB; however, when I go visit one of the entries to see if the changes were made, I still see "Unknown." in the req field. In other words, the site does not display the change.
Any idea why this is happening? I do not want to manually go through each entry with the unknown value, as there are over 1000 such entries.
Thanks much!