I use an update query in mysql to change the published row in my db to 1 or 0. Is there a way to do this automatically in one query, ie, if the database had a 1 in published it would set it to 0 and if it had a 0 it would set it to 1… just like a switch?
Thanks
1 Answer