sql 更新语句中的某个值为0,则为其赋值1
UPDATE Products SET state = (case when state =0 then 1 else 0 end)$saves=mysql_query("UPDATE Products SET state = (case when state =0 then 3 else 0 end) WHERE id in (".$delid.")");