mysql> use db_1
mysql> update config set column_3 = 'yes' where column_3 = 'no';
Is there more than one row for this column 3 and is there a space or not? The above syntac will work if there's just that one row but if you have more than one row, it's going to update all of them, unless you specify anything unique about that row you want updated. Also if this is the only row for column 3, you can disregard the where clause after 'yes', just add the ; at the end.
You should read the mysql documentation though, these are very basic commands to know when administering a MySQL database.
Last edited by trickykid; 03-26-2007 at 07:45 PM.
|