mysql matching odd, even line data

Match odd lines:
 SELECT t1.TagDesc, the SUM (t1.TimeDiff) the AS "runtime" from temp1_status T1 the WHERE ID & . 1
select t1.TagDesc, SUM(t1.TimeDiff) AS "运行时间" from temp1_status t1 WHERE mod(id, 2)=1;

 

Even line matching:
 the SELECT t1.id, t1.TagDesc, the FROM temp1_status T1   the WHERE the MOD (ID, 2 ) = 0

Guess you like

Origin www.cnblogs.com/chuijingjing/p/12094974.html