isnumeric

Description

Determines if an expression is a valid numeric datatype.

Syntax

isnumeric (character_expression)

Parameter

character_expression – is a character-type variable, constant expression, or a column name.

Examples

Determines if the values in the postalcode column of the authors table contains valid numeric datatypes:

select isnumeric(postalcode) from authors

Determines if the value $100.12345 is a valid numeric datatype:

select isnumeric("$100.12345")

Usage