1.abs函式取數值表示式的絕對值
selectabs(-
40) 結果是40
2.ceiling函式取大於等於指定表示式的最小整數
selectceiling(40.5) 結果是41
3.floor函式取小於等於指定表示式的最大整數
selectfloor(40.5) 結果是40
4.power函式取數值表示式的冪值
selectpower(4,2) 結果是16
5.round函式將數值表示式四捨五入為指定精度
selectround(40.563,1) 結果是40.600
6.sign函式對正數取1,負數取-1,0取0
selectsign(4
) 結果是1
select
sign(-
4) 結果是-
1select
sign(0) 結果是0
7.sqrt函式取數值表示式的平方根
selectsqrt(9) 結果是3
SQL 標量函式 數學函式
sql 標量函式 數學函式 函式引數功能 asin acos atan float expr 求float expr的反正弦 反余弦 反正切 atn2 float expr1,float expr2 求float expr1 float expr2的反正切 sin cos tan cot float...
四 SQL函式 數學函式2
它接受乙個引數,這個引數為待計算正弦值的表示式。如 select fname,fweight,sin fweight from t person它接受乙個引數,這個引數為待計算余弦值的表示式。如 select fname,fweight,cos fweight from t person它接受乙個引...
函式 數學函式
數學函式 abs degrees rand acos exp round asin floor sign atan log sin atn2 log10 sqrt ceiling pi square cos power tan cot radians abs 返回指定數值表示式的絕對值 正值 的數學...