我想在应用程序界面上显示国际电话号码,就像Apple Contacts应用程序(iPhone 6)使用的格式一样。 例如:+1(xxx)xxx-xxxx,+ 91 xxxxx xxxxx,+ 61(0)x xxxx xxxx,xxxxx xxxxx。
我们是否可以部署标准Apple显示的电话号码格式,就像他们在iOS通讯录应用中安排电话号码一样。
请给我一些建议......
是否有任何第三方API可用于识别号码并返回数字格式,如联系人应用程序编号格式。请让我知道......
我在等待您的宝贵回应....
先谢谢。
答案 0 :(得分:0)
请尝试以下代码:
SELECT SQL_NO_CACHE dt, COUNT(1) FROM calendar x JOIN time_sample y WHERE x.dt BETWEEN y.start AND y.end GROUP BY dt ORDER BY COUNT(1) DESC LIMIT 3;
+------------+----------+
| dt | COUNT(1) |
+------------+----------+
| 2010-04-03 | 2 |
| 2010-05-05 | 2 |
| 2010-03-13 | 2 |
+------------+----------+
3 rows in set (0.36 sec)
EXPLAIN
SELECT SQL_NO_CACHE dt, COUNT(1) FROM calendar x JOIN time_sample y WHERE x.dt BETWEEN y.start AND y.end GROUP BY dt ORDER BY COUNT(1) DESC LIMIT 3;
+----+-------------+-------+-------+---------------+---------+---------+------+---------+----------------------------------------------+
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
+----+-------------+-------+-------+---------------+---------+---------+------+---------+----------------------------------------------+
| 1 | SIMPLE | y | index | start | start | 7 | NULL | 2 | Using index; Using temporary; Using filesort |
| 1 | SIMPLE | x | index | PRIMARY | PRIMARY | 3 | NULL | 1000001 | Using where; Using index |
+----+-------------+-------+-------+---------------+---------+---------+------+---------+----------------------------------------------+
希望这有帮助!