MySQL TRUNCATE() Function

Опубликовано: 02 Июнь 2026
на канале: Coder Decoder
4,434
112

MySQL TRUNCATE() Function
Definition and Usage
The TRUNCATE() function truncates a number to the specified number of decimal places.

Return a number truncated to 2 decimal places:

SELECT TRUNCATE(135.375, 2);