select id1,name1,sex2
from 表2
left join 表1 on 表1.name1=表2.name2
where  表2.sex2='女'
--主表  表2 全部显示
  副表  表1 满足条件则显示

 以主表表2为主,根据where查询所有的记录集,与此同时链接与副表表1,调出与主表表2相关联的存在于副表表1中的相关记录.

相关文章:

  • 2022-02-08
  • 2021-11-14
  • 2022-02-06
  • 2022-12-23
  • 2022-12-23
  • 2021-11-05
猜你喜欢
  • 2021-08-14
  • 2021-07-13
  • 2022-12-23
  • 2022-02-08
  • 2021-06-25
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案