名称描述
返回时间表absolute value
返回the arc cosine
返回the arc sine
返回式arc切线
returnthearctangentofthetwoarguments
returnthesmallestintegervaluenotlessthantheargument
returnthesmallestintegervaluenotlessthantheargument
转换numbersbetweendifferentnumberbases
返回成本
返回接触
计算生命周期冗余校验值
转换冗馀到延迟
集成电路
分区操作器
Raise to the power of
returnthelargestintegervaluenotgreaterthantheargument
returnthenaturallogarithmoftheargument
returnthenaturallogarithmofthefirstargument
returnthebase-10日志文件格式
returnthebase-2日志文件格式
MINUS操作器
返回the remainder
模块化操作器
返回the value of pi
添加操作器
returntheargumentraisedtothespecifiedpower
returntheargumentraisedtothespecifiedpower
returnargumentconvertedtoradians
returnarandomfloating-point value
Round the argument
Return the sign of the argument
Return the sine of the argument
returnthesquarerootoftheargument
返回the tangent of the argument
多复制操作器
truncatetospecifiednumberofdecimalplaces
变更the sign of the argument
1.ABS
是ABS(x )
返回x的绝对值
2.ACOS/ASIN/ATAN
acos(x )/ASIN(X ) x :返回反馀弦/正弦值。 如果x不在[-1,1 ]之间,则返回空值。
atan(x ) :返回反正切的值。
3.CEILING/FLOOR
ceiling(x ) :返回大于x的最小整数值
floor(x ) :返回小于x的最大整数值
4.CONV
conv(n,from_base,to_base ) )。
在不同的数据库之间转换数字。 返回数字n的字符串数值。 从from_base基底转换为to_base基底,如果任何参数为NULL,则返回NULL。 参数n被解释为整数,但可以指定为整数或字符串。 最小的基团是2,最大的基团是36。 如果to_base为负数,则n视为有符号数,否则n视为无符号数。 CONV以64点精度动作。
MySQLselectconv('a ',16,2 );
- '1010 '
MySQLselectconv('6e ',18,8 );
- '172 '
mysqlselectconv (-17、10、-18 );
- '-H '
MySQLselectconv(10'10''10'0xa,10,10 );
- '40 "
5.COS/COT/SIN/TAN
COS(x )/SIN(X ) x ) :余弦/正弦。
cot(x )/TAN(X ) x ) :余切/正切。
6.CRC32
CRC32(str )返回str的循环冗馀码(32位无符号整数)。 如果str为空,则返回空值。
7 .死亡/冗馀
degrees(x ) :将弧度转换为角度。
径向(x ) :将角度转换为弧度。
8.EXP
是exp(x )
返回值e (自然对数的底)的x次幂
9.GREAST/LEAST
greatest(value1,value2,)/least (value 1,value2,) :返回若干数量中的最大值/最小值。 如果参数为空,则返回空值。
mysqlselectgreatest (2,0;
- 2
MySQLselectgreatest(34.0、3.0、5.0、767.0;
- 767.0
MySQL选择聚合(' b '、' a '、' c ' );
- 'C '
mysqlselectleast (2,0;
- 0
MySQLselectleast(34.0、3.0、5.0、767.0;
- 3.0
mysql SELECT LEAST('B '、' a '、' c ' );
- 'A '
10.LN/LOG/LOG2/LOG10
ln(x ) :返回x的自然对数
与log(x ):log(x )同等
log(x,y ) :返回以x的y为底的对数
log2(x )与log2(x,x )相同
log10(x )与log 10,x )相同
11.MOD
mod(x,y ) )。
返回x/y的模(馀数)
12.PI
PI () ) )
返回pi的值(圆周率)
13.POW
pow(x,y ) :返回x的y次幂。
14 .兰德
RAND () RAND () x ) ) )。
返回0到1之间的随机值。 如果指定参数“种子”,则RAND ) )随机数生成器将生成指定的值。
15 .回合
运行(x,y ) )。
返回参数x的四舍五入后的y位小数值
16.SIGN
sign(x )是
返回表示数字x的符号的值。 正数为1; 0为0; 负数是-1。
17.SQRT
sqrt(x )是
返回数的平方根
18 .中断
中断(x,d ) )。
返回将数字x截断为小数点后d位的结果。 如果d大于小数位数,则返回原始数量。 如果d为负数,小数将被截断,整数部分之后的d位置为0。
mysqlselecttruncate (1.223,1 );
- 1.2
mysqlselecttruncate (1.999,1 );
- 1.9
mysqlselecttruncate (1.999,0 );
- 1
mysqlselecttruncate (-1.999,1 );
- -1.9
MySQLselecttruncate(122,-2;
100
mysqlselecttruncate (10.28 * 100,0 );
- 1028