I have a table i need to edit
i want to replace all values of 3 to 1 within a column.
eg. change blah to 3 where blah = 1
just not 100% sure on the right syntax.
hopefully someone can point me in the right direction.
| SitePoint Sponsor |
I have a table i need to edit
i want to replace all values of 3 to 1 within a column.
eg. change blah to 3 where blah = 1
just not 100% sure on the right syntax.
hopefully someone can point me in the right direction.
Code:UPDATE tablename SET blah = '3' WHERE blah = '1';
thanks worked perfect.
extreme101,
My pleasure
.
Bookmarks