I have a table and this table contain multiple columns. I want to know how to update all the entries except one in a particular column. I don’t want to use more than one update query.
If you have any idea about this please share me. Your help is definitely appreciated.
Table Structure

Query (I tried this myself but i am confused regarding this also working)
UPDATE `table` SET STATUS = 0;
UPDATE `table` SET STATUS = 1 WHERE id = 4;
My Question is how to combine these queries in one query
To update all rows but one:
If you need to explicitely set the status of the row where
id = 1, I suggest you do it in a second separate query.If you really want to do it in one query: