mysql---数学函数

mysql中常见的数学函数有:ceil floor mod round sin cos sqrt

1. ceil(X) X向上取整  floor(X) X向下取整

2.mod(a,b)去a/b的余数

3.round(X) X四舍五入

4.sin(X) 去正弦值 cos(X)去余弦值


5.sqrt(X) 将X开方


猜你喜欢

转载自blog.csdn.net/qwerlol123456/article/details/80822178