如果数据库里  写脚本你and  和or 都用到了,

注意了  :

错误写法  where Id= 1   and  Name=' 柳正 '  or  isDelete =1     这样是错误的。

 

正确写法:   where Id= 1   and  (Name=' 柳正 '  or  isDelete =1 or Phone='123456')       

and 匹配多个or   需要把or 括起来

 

相关文章:

  • 2022-12-23
  • 2021-10-05
  • 2021-12-26
  • 2021-11-13
  • 2021-04-17
  • 2021-06-11
  • 2022-12-23
  • 2021-11-11
猜你喜欢
  • 2021-09-13
  • 2021-05-05
  • 2022-12-23
  • 2021-04-26
  • 2022-12-23
  • 2021-12-16
相关资源
相似解决方案