代码之家  ›  专栏  ›  技术社区  ›  sehugg

电话号码的最后一位是随机的吗?

  •  0
  • sehugg  · 技术社区  · 16 年前

    我发现,对于两个不同的最后数字,完全相同的提示有着显著不同的响应率(25%对35%)。现在我很好奇为什么会这样。有人知道电话号码是怎么分配的吗?为什么最后一个数字是有意义的?

    1 回复  |  直到 16 年前
        1
  •  2
  •   Michał Niklas    16 年前

    我查了我们的帐单数据库。我们使用星号作为PBX并将帐单存储在PostgreSQL数据库中。

    select substring(cdr_callerid_norm from '[0-9]$') as last_digit, count(*)
    from asterisk_cdr 
    where cdr_callerid_norm is not null and length(cdr_callerid_norm) > 2
    group by last_digit 
    order by last_digit
    

    结果:

     last_digit | count
    ------------+-------
     0          | 17919
     1          | 13811
     2          |  8257
     3          | 20708
     4          | 13492
     5          | 13708
     6          |  8813
     7          |  6943
     8          | 11693
     9          |  7942
                            |  2584
    (11 rows)
    

    不是随机的

    推荐文章