Collections:
Convert Character Strings to Numbers in Oracle
How To Convert Characters to Numbers in Oracle?
✍: FYIcenter.com
You can convert characters to numbers by using the TO_NUMBER() function as shown in the following examples:
SELECT TO_NUMBER('4123.4570') FROM DUAL
4123.457
SELECT TO_NUMBER(' $4,123.46','$9,999,999.99') FROM DUAL
4123.46
SELECT TO_NUMBER(' -4.12E+03') FROM DUAL
-4120
⇒ Convert Dates to Character Strings in Oracle
⇐ Convert Numbers to Character Strings in Oracle
2020-03-25, 7670🔥, 0💬
Popular Posts:
What Are the Differences between DATE and TIMESTAMP in Oracle? The main differences between DATE and...
How To Generate CREATE TABLE Script on an Existing Table in SQL Server? If you want to know how an e...
How To Assign Debug Privileges to a User in Oracle? In order to run SQL Developer in debug mode, the...
How To Select All Columns of All Rows from a Table with a SELECT statement in SQL Server? The simple...
How to calculate the storage size of a JSON (JavaScript Object Notation) value using the JSON_STORAG...