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, 8349🔥, 0💬
Popular Posts:
How Fixed Length Strings Are Truncated and Padded in SQL Server Transact-SQL? When the length of the...
How To Calculate Age in Days, Hours and Minutes in SQL Server Transact-SQL? On many Web sites, news ...
How To Concatenate Two Character Strings Together in SQL Server Transact-SQL? Concatenating two char...
How To Format DATETIME Values to Strings with the CONVERT() Function in SQL Server Transact-SQL? SQL...
How To Change the Password for Your Own User Account in MySQL? If you want to change the password of...