Answers for "sql to number"

SQL
1

oracle to_number

TO_NUMBER('1210.73', '9999.99')
Result: 1210.73

TO_NUMBER('546', '999')
Result: 546

TO_NUMBER('23', '99')
Result: 23
Posted by: Guest on December-20-2020
3

sql cast to integer

-- 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;
Posted by: Guest on April-17-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language