bugl
bugl
HomeLearnPatternsSearch
HomeLearnPatternsSearch

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

SQL Server ISNUMERIC() Function

Concept visual

SQL Server ISNUMERIC() Function

Pointer walk
two pointers
leftright102132436485116
left=0
right=6
1
3

Start at both ends

Example

Tests whether the expression is numeric:

SELECT ISNUMERIC(4567);

Definition and Usage

The ISNUMERIC() function tests whether an expression is numeric. This function returns 1 if the expression is numeric, otherwise it returns 0.

Syntax

Isnumeric(

expression )

Parameter Values

Parameter

Description expression

Required. The value to test

Technical Details

Works in:

SQL Server (starting with 2008), Azure SQL Database, Azure SQL Data Warehouse, Parallel Data Warehouse

More Examples

Example

Tests whether the expression is numeric:

SELECT ISNUMERIC('4567');

Example

Tests whether the expression is numeric:

SELECT ISNUMERIC('Hello world!');

Example

Tests whether the expression is numeric:

SELECT ISNUMERIC(20*3);

Example

Tests whether the expression is numeric:

SELECT ISNUMERIC('2017-08-25');

Previous

❮ SQL Server Functions

Next

Previous

SQL Server ISNULL() Function

Next

SQL Server NULLIF() Function