How would I round down to the nearest integer in MySQL?
Example: 12345.7344 rounds to 12345
12345.7344 rounds to 12345
mysql\'s round() function rounds up.>
round()
Try this,
SELECT SUBSTR(12345.7344,1,LOCATE('.', 12345.7344) - 1)
or
SELECT FLOOR(12345.7344)