吹静静

欢迎QQ交流:592590682

匹配奇数行:
select t1.TagDesc, SUM(t1.TimeDiff) AS "运行时间" from temp1_status t1 WHERE id&1
select t1.TagDesc, SUM(t1.TimeDiff) AS "运行时间" from temp1_status t1 WHERE mod(id, 2)=1;

 

匹配偶数行:
SELECT t1.ID, t1.TagDesc, FROM temp1_status t1  WHERE MOD ( id, 2 ) =0
posted on 2019-12-25 09:35  吹静静  阅读(1514)  评论(0编辑  收藏  举报