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");