Curriculum
Course: SQL
Login

Curriculum

SQL

SQL References

0/80

MySQL Functions

0/139

SQL Server Functions

0/84

SQL Quick Ref

0/1
Text lesson

ISNUMERIC

Example

Determines if the expression is numeric.

SELECT ISNUMERIC(4567);

Definition and Usage

The ISNUMERIC() function checks if an expression is numeric and returns 1 if true, otherwise 0.

Syntax

ISNUMERIC(expression)

Parameter Values

Parameter

Description

expression

Mandatory. The value that is checked to determine if it is numeric.

Technical Details

Works in:

 SQL Server (from 2008 onward), Azure SQL Database, Azure SQL Data Warehouse, and Parallel Data Warehouse

More Examples

Example

Checks if the expression qualifies as numeric.

Checks if the expression qualifies as numeric.

Example

Determines if the expression is numeric.

SELECT ISNUMERIC(‘Hello world!’);

Example

Checks if the expression is of a numeric nature.

SELECT ISNUMERIC(20*3);

Example

Determines if the expression can be classified as numeric.

SELECT ISNUMERIC(‘2017-08-25’);