ISNUMERIC (Transact-SQL)
SQL Server 2005
Updated:
12 December 2006
System Functions (Transact-SQL)
Data Types (Transact-SQL)
Determines whether an expression is a valid numeric type.
Transact-SQL Syntax Conventions
- expression
-
Is the expression to be evaluated.
ISNUMERIC returns 1 when the input expression evaluates to a valid numeric data type; otherwise it returns 0. Valid numeric data types include the following:
|
int |
numeric |
|
bigint |
money |
|
smallint |
smallmoney |
|
tinyint |
float |
|
decimal |
real |
A return value of 1 indicates that expression can be converted to at least one of the numeric types.
Note: |
|---|
| ISNUMERIC returns 1 for some characters that are not numbers, such as plus (+), minus (-), and valid currency symbols such as the dollar sign ($). For a complete list of currency symbols, see Using Monetary Data. |
Reference
Expressions (Transact-SQL)System Functions (Transact-SQL)
Data Types (Transact-SQL)