## Syntax
```mermaid
%%{init: {
'theme': 'base',
'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
'themeVariables': {
'fontSize': '11px',
'fontFamily': 'Arial'
}
}}%%
flowchart LR
Start((START)) --> IS_PHONE_NUMBER[IS_PHONE_NUMBER]:::quoted
IS_PHONE_NUMBER --> End((END))
```
## Purpose
The `IS_PHONE_NUMBER` SQL function evaluates to `true` when the value provided is a valid phone number for the country specified. In case no country is specified, an [E.164 notation](https://en.wikipedia.org/wiki/E.164) is required.
See also [[PHONE_NUMBER_TYPE]], [[PHONE_NUMBER_TO_E164]], [[PHONE_NUMBER_TO_NATIONAL]] and [[PHONE_NUMBER_TO_INTERNATIONAL]].
Parameters:
- Phone (`varchar2`): phone number as text.
- Country (`varchar2`): country code as [ISO 3166-1 alpha-2 code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
Returns: True when the value provided is a valid phone number for the country indicated.
## Examples
The following example verifies a phone number using E.164 notation:
```sql
select is_phone_number('+31880026500')
----------------
true
```
The following example verifies a phone number for use within the Netherlands:
```sql
select is_phone_number('0880026500', 'NL')
----------------
true
```
The following example verifies a phone number for use within Belgium:
```sql
select is_phone_number('0880026500', 'BE')
----------------
false
```