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, 7611🔥, 0💬
Popular Posts:
How AdventureWorksLT tables are related in SQL Server? There are 12 user tables defined in Adventure...
How To Disable a Login Name in SQL Server? If you want temporarily disable a login name, you can use...
How To Break Query Output into Pages in MySQL? If you have a query that returns hundreds of rows, an...
How To List All Stored Procedures in the Current Database in SQL Server Transact-SQL? If you want to...
What Happens If the UPDATE Subquery Returns Multiple Rows in MySQL? If a subquery is used in a UPDAT...