Link Search Menu Expand Document

TO_INT

Converts a string to an integer.

Syntax

TO_INT(<expression>)

Parameters

Parameter Description Supported input types
<expression> The string to covert to an integer. TEXT

Return Type

INTEGER

Example

The following example converts the input string to the integer 10:

SELECT
	TO_INT('10');

Returns: 10