我在写一个PHP工具,
从我的查询中,我得到低于输出的结果
| dst | count(*) |
| 0280302002 | 31 |
| 0280304115 | 83 |
| 0280304121 | 80 |
| 0280304124 | 10 |
| 0280304136 | 1 |
| 2002 | 3 |
| 4115 | 12 |
| 4121 | 10 |
| 4124 | 2 |
我只需要10位数的输出。
例如:31(值为0280302002+3(值为2002))=输出应为
0280302002=34
有没有办法得到这个值?
我的查询
select dst,count(*) from cdr where calldate between '2019-01-01 00:00:00' and '2019-01-31 23:59:59' and dst in ('4121', '2006','2011''4124','0280304121', '0280302006','0280302011','0280304124') and length(src)>4 group by dst order by dst;