标签:ar sp bs ef as nbsp sql 方法 ht
select abs(-5)
print abs(-5)
表中取绝对值的方法:
select code,name,abs(chinese)as yuwen from xuesheng
select *from xuesheng where ABS(chinese)>90
select ceiling(math) from xuesheng//天花板
select *from xuesheng where ([weight] - CEILING([weight]))!=0
select POWER(3,2) --表示的次方等于几就返回几
select POWER(age,2)from xuesheng
select ‘这是‘+name+‘的年龄的平方‘,POWER(age,2)from xuesheng
select ROUND(176.2,0)///逗号前表示要四舍五入的数,逗号后表示要四舍五入到小数点后几位。
select [weight],ROUND([weight],0) as shehou from xuesheng
select SQRT(4)//结果为2
select SQUARE(4)//结果为16
标签:ar sp bs ef as nbsp sql 方法 ht
原文地址:http://www.cnblogs.com/wleaves/p/4164983.html