sql cast to integer
snippet in sql

sql cast to integer

user4130

-- NOTE: this is for SQL-Oracle specifically

/*
<...> : Your personal entry
*/

-- syntax:
CAST(<variable> as <variable-type>) -- in this case: <variable-type> = INTEGER

-- example:
SELECT CAST(MEMBER_NO as INTEGER)
FROM DUAL;

sql cast

user1979

SELECT CAST(25.65 AS int);