$sql = "UPDATE MyTableName SET MyBooleanColumn = !MyBooleanColumn WHERE Something = 123";