如下:
select count(*) as num from a where id in (11,12,9,4,15) group by id;
这样输出数据后,不是按照 id的数据顺序 11,12,9,4,15 输出的
求解决方案 3Q!
select count(*) as num from a where id in (11,12,9,4,15) group by id;
这样输出数据后,不是按照 id的数据顺序 11,12,9,4,15 输出的
求解决方案 3Q!