+ 3

What is the use of Truncate function in MySQL

SQL truncate function

25th Jun 2018, 12:07 PM
Mukul Deshwal
4 Respostas
+ 7
Hello, Mukul Deshwal ! The MySQL TRUNCATE function returns a number truncated to a certain number of decimal places. The TRUNCATE function can be used in the following versions of MySQL: MySQL 5.7, MySQL 5.6, MySQL 5.5, MySQL 5.1, MySQL 5.0, MySQL 4.1, MySQL 4.0, MySQL 3.23 number is the number you want to truncate. decimal_places is the number of decimal places to be truncated. This value must be a positive or negative integer. http://oracleplsql.ru/mysql-function-truncate.html
25th Jun 2018, 12:17 PM
Alexander Sokolov
Alexander Sokolov - avatar
+ 2
Thanks Alexander.Now my doubt is clear....🙂
25th Jun 2018, 12:23 PM
Mukul Deshwal
+ 1
Yerkebulan your answer is wrong.....Just check the link in the answer by Alexander Sokolov
27th Jun 2018, 2:39 PM
Mukul Deshwal
0
Hi Mukul. Function "Truncate" - clear all data from table.
26th Jun 2018, 9:58 AM
Yerkebulan