Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
値を「フェッチ/返す」ことなく、テーブル内の整数値を1で更新する簡単な方法はありますか?
私は似たようなものを探しています$i ++;
$i ++;
$query = $DBH->prepare("UPDATE table SET col = ?"); $query->bind_param(++); $query->execute();
明らかに上記はうまくいきませんが、それは私が達成したいことの一種です。
もちろん:
$query = $DBH->prepare("UPDATE table SET col=col+1");