Collections:
Converting Numeric Values to Character Strings in MySQL
How To Convert Numeric Values to Character Strings in MySQL?
✍: FYIcenter.com
You can convert numeric values to character strings by using the CAST(value AS CHAR) function as shown in the following examples:
SELECT CAST(4123.45700 AS CHAR) FROM DUAL; 4123.45700 -- How to get rid of the last 2 '0's? SELECT CAST(4.12345700E+3 AS CHAR) FROM DUAL; 4123.457 SELECT CAST(1/3 AS CHAR); 0.3333 -- Very poor conversion
⇒ Converting Character Strings to Numeric Values in MySQL
⇐ Expressions with NULL Values in MySQL
2018-03-28, 4663🔥, 0💬
Popular Posts:
How To Revise and Re-Run the Last SQL Command in Oracle? If executed a long SQL statement, found a m...
How To Start the Command-Line SQL*Plus in Oracle? If you Oracle server or client installed on your w...
How To List All Stored Procedures in the Current Database in SQL Server Transact-SQL? If you want to...
How to download and install the scaled-down database AdventureWorksLT in SQL Server? If you want to ...
How To Install Oracle Database 10g XE in Oracle? To install 10g universal edition, double click, Ora...