I want firstly antire def
column set to be 0
except the row where id is a variable (this should be 1
).
$sql = "update rolls set def = 0, def = 1 where id = :aid";
$st = $db->prepare($sql);
$st->execute([":aid" => $id]);
result - the first part - set to 0
- doesn't work;
Any help?