mysql 向上取整
时间: 2023-10-17 18:35:03 浏览: 157
在MySQL中,可以使用函数ceil来实现向上取整。ceil函数返回大于函数参数的最小整数。例如,使用ceil(1.002),将返回2,而使用ceil(-1.002),将返回-1。所以,MySQL中的向上取整可以使用ceil函数来实现。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [常用mysql数据库配置文件](https://download.csdn.net/download/zslsh44/88278582)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [第三章:MySQL常用函数讲解(二): 取整函数(ceil、floor、round)](https://blog.csdn.net/weixin_43597208/article/details/116911513)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [MySQL 不四舍五入取整、取小数、四舍五入取整、取小数、向下、向上取整](https://blog.csdn.net/chengyj0505/article/details/127573746)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文