php - How to update multiple MySQL table entries with different id?
问题描述
Please make simple answer :)
<?php UPDATE user SET point='$_POST[point]' WHERE id='$_POST[id]; ?>
解决方案
您可以使用IN
签入列表
UPDATE user SET point='$_POST[point]' WHERE id in (<list of ids>);
推荐阅读
- javascript - 如何模拟自动对焦
- groovy - 在 Groovy 中拆分字符串的惯用方法
- sql - ORA-01722 尝试使用 ORDER BY 时
- postman - 如何通过 Postman 的预请求脚本设置请求正文?
- c# - 为什么这个隐马尔可夫模型会做出这个预测?
- php - 在特定目录中为 php 安装并激活 mcrypt
- android - 如何阻止用户检查单选按钮android
- javascript - 该对象不管理 forEach 属性
- javascript - onMouseLeave 和 onMouseOut 激活过快;
- c# - 尝试使用 c# asp.net c# 使用 Google Cloud Vision 检测图像值