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, 6385🔥, 0💬
Popular Posts:
How To Escape Special Characters in SQL statements in MySQL? There are a number of special character...
What Happens to an Arithmetic Operation with Two Different Data Types in SQL Server Transact-SQL? Wh...
How to convert a JSON (JavaScript Object Notation) quoted string into a regular character string usi...
How To Assign Debug Privileges to a User in Oracle? In order to run SQL Developer in debug mode, the...
How To Create a Table Index in Oracle? If you have a table with a lots of rows, and you know that on...