Wednesday, 17 October 2012

How to get rid of the last 2 0’s? | MySQL Interview Questions

SELECT CAST(4.12345700E+3 AS CHAR) FROM DUAL;
4123.457
SELECT CAST(1/3 AS CHAR);
0.3333

No comments: