常用的多表联合查询的sql语句:
select table1.ID from table1 inner join table2 on table1.ID=table2.ID
 where  table2.col2='xxx'

改进后:
select a.ID from table1 a,
(select col1,ID from table2 where col2='xxx') b
 where a.ID=b.ID

相关文章:

  • 2021-08-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-20
  • 2021-11-30
  • 2021-11-22
  • 2021-12-05
  • 2022-12-23
  • 2021-06-29
相关资源
相似解决方案