--比较下面两段sql 执行效率

select * from DC_Keyword where nick='绿鸽鞋类专营店' and campaign_id=6852747
and adgroup_id=160206338 and keyword_id is not null and data_time in
(select MAX(data_time) from DC_Keyword where nick='绿鸽鞋类专营店')

--特别是当用到子查询的时候,在子查询语句中 where 条件尽可能多 查询效率越快
select * from DC_Keyword where nick='绿鸽鞋类专营店' and campaign_id=6852747
and adgroup_id=160206338 and keyword_id is not null and data_time in
(select MAX(data_time) from DC_Keyword where nick='绿鸽鞋类专营店' and campaign_id=6852747
and adgroup_id=160206338)

相关文章:

  • 2021-06-27
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-23
  • 2021-06-03
  • 2021-12-29
  • 2021-11-17
  • 2021-11-17
相关资源
相似解决方案