发布网友 发布时间:2024-10-02 10:50
共1个回答
热心网友 时间:2024-10-04 22:00
to_number(‘123.45‘) from dual;TO_NUMBER(‘123.45‘)------------------- 123.45SQL> select to_number(‘123.45‘, ‘9999.99‘) from dual;TO_NUMBER(‘123.45‘,‘9999.99‘)----------------------------- 123.45SQL> select to_number(‘12‘, ‘99‘) from dual;TO_NUMBER(‘12‘,‘99‘)-------------------- 12SELECT TO_NUMBER(‘$12,123.23‘,‘$999,999.99‘) FROM DUAL;SQL>SQL>SQL>SQL>Do calculation after the conversion