今天同事踩到的坑,记下来以免以后犯同样的错误。

数据库的order_ids字段类型是string类型,查询的时候让order_ids=0,即使order_ids="aaaaaaa",order_ids=0也能查询出来,因为字符串和数字比较是自动转化为数字,如果开头没有数字就转化为0,所以查询一致有数据。

看到有同样的文章,引用过来,https://www.cnblogs.com/micrari/p/6358652.html

相关文章:

  • 2021-08-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-17
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-03
  • 2021-11-20
  • 2022-12-23
  • 2021-07-12
  • 2022-12-23
相关资源
相似解决方案