一條相關子查詢的SQL優化

原sql以下:sql select distinct gc.program, gc.agent_id, gc.freq, gc.programid, a.agentName, (select count(id) from ge_t where alert_type='add' and agent_id = gc.agent_id and freq = gc.freq and
相關文章
相關標籤/搜索