Filed under Programming & Design by administrator
SELECT FLOOR(column) AS column FROM table
SELECT CEILING(column) AS column FROM table
Try the floor() function
or maybe the truncate() function
Comments on I need to extract a decimal column from a MySql table but the result must be Integer, cast is not working?
SELECT FLOOR(column) AS column FROM table
SELECT CEILING(column) AS column FROM table
Try the floor() function
or maybe the truncate() function