Link Search Menu Expand Document

TO_INT

Converts a string to a numeric INT data type.

Syntax

TO_INT(<exp>)
Parameter Description
<expr> Any numeric data types or numeric characters that resolve to a VARCHAR, TEXT, or STRING data type.

Example

SELECT
	TO_INT('10');

Returns: 10