(select c.* from chart as c,grel as gr where c.id=gr.tgtid and gr.srcid=840 and gr.srcType=1 and gr.tgtType=4) union (select * from chart as c where c.id in(710,722,723)) ORDER BY id DESC;
------最佳解决方案--------------------------------------------------------
select c.* from chart as c left join grel as gr on c.id=gr.tgtid where (gr.srcid=840 and gr.srcType=1 and gr.tgtType=4) or c.id in(710,722,723) ORDER BY id DESC;