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, 4470🔥, 0💬
Popular Posts:
Where to find answers to frequently asked questions on CREATE, ALTER and DROP Statements in MySQL? H...
What Is a Parameter File in Oracle? A parameter file is a file that contains a list of initializatio...
How To Recover a Dropped Index in Oracle? If you have the recycle bin feature turned on, dropped ind...
What Happens to Your Transactions When ERROR 1213 Occurred in MySQL? If your transaction receives th...
How To Find Out What Privileges a User Currently Has in Oracle? Privileges granted to users are list...