--查询地址不在上海市,江苏市,北京市的学生数据
select * from student where areaname not in('上海市','江苏市','北京市')

 

-- 在嵌套查询语句中的使用
SELECT u.id FROM user u WHERE u.ID not in (SELECT projectid FROM BASE_LOCATION where projectid is not null)

相关文章:

  • 2021-08-21
  • 2021-12-14
  • 2022-12-23
  • 2021-12-24
  • 2021-10-14
  • 2021-07-20
猜你喜欢
  • 2021-10-04
  • 2022-12-23
  • 2022-01-31
  • 2022-12-23
  • 2021-12-10
  • 2022-02-04
相关资源
相似解决方案