- Documentation
Torch Log Service
User Guide
Query and analysis
SQL function
Phone number function
SQL function
Phone number function
Phone number function
This article introduces the syntax of phone number functions supported by TLS and usage examples for common scenarios.
Notice
- In TLS analysis statements (SQL statements), string values must be enclosed in single quotes (''). Identifiers, such as field names or column names, are either not enclosed in quotes or are enclosed in double quotes (""). For example, 'time' represents a string, time or "time" represents a field name or column name.
- The phone number function is used to query information about mainland China phone numbers, such as location, carrier, and other details.
The MOBILE_CARRIER function is used to query the carrier of a phone number.
- Description of return value
- The return value is of the Varchar type.
- mobile field value is a phone number, and you can use the MOBILE_CARRIER function to query which carrier these phone numbers belong to.
- Query statements and analysis statements
The MOBILE_CITY function is used to analyze the city associated with a phone number.
- Description of return values
- The return value is of the Varchar type.
- The value of the mobile field is a phone number; you can use the MOBILE_CITY function to query the city associated with this phone number.
- Query and analysis statements
MOBILE_PROVINCE function
The MOBILE_PROVINCE function is used to analyze the province of a phone number.
- The return value is of Varchar type.
- mobile field values are phone numbers, and you can use the MOBILE_PROVINCE function to query the provinces to which these phone numbers belong.
- Statements for querying and analysis
Last updated: 2026.07.30 17:29:25