douxin8610
douxin8610
2017-05-07 18:37

使用php更新mysql表时如何添加许多WHERE约束?

  • php
  • constraints

How can I add multiple constraints after the WHERE part of the UPDATE MySQL table statement? Is this possible? I have tried separating the constraints using commas. Thank you.

    $update_error = mysqli_query($con, "UPDATE users SET error_level='3'
                    WHERE errors <= '650', errors > '200'");
  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

3条回答

为你推荐

换一换