查询,division_id为53,role为2的数据。

select * from lx_divisionmember where division_id=53 and role=2;

逻辑查询

那么查询相反的数据呢

select * from lx_divisionmember where division_id!=53 or role!=2;

逻辑查询

 

这就是取反的意思,不过有点不好理解,但查询结果就是如此。好好学学数据库以及逻辑知识吧。

相关文章:

  • 2021-06-27
  • 2022-03-09
  • 2022-12-23
  • 2021-06-11
  • 2022-01-11
  • 2022-02-09
  • 2022-12-23
  • 2021-08-27
猜你喜欢
  • 2021-10-19
  • 2022-12-23
  • 2022-03-10
  • 2021-08-05
  • 2022-12-23
  • 2021-05-29
  • 2022-01-27
相关资源
相似解决方案