首页 > 数据库技术 > 详细

数据库(聚合函数)

时间:2014-11-02 00:30:57      阅读:281      评论:0      收藏:0      [点我收藏+]

bubuko.com,布布扣

bubuko.com,布布扣

bubuko.com,布布扣bubuko.com,布布扣

 

bubuko.com,布布扣

bubuko.com,布布扣

bubuko.com,布布扣

bubuko.com,布布扣

bubuko.com,布布扣

bubuko.com,布布扣

select abs(-5)--绝对值 在结果框里显示
print abc(-5)--消息框里显示
select code,xingming,abs(yuwen)as yuwen from xhushengbiao
select code,xingming,yuwen from xhushengbiao where ABS(yuwen)>95

select *from xhushengbiao where ABS(yuwen)>95
select CEILING(1.3)
select CEILING(shuxue) form xueshengbiao where (shuxhe-CEILING(shuxue))!=0
--分数减去上限的分数不等于零
select CEILING(shuxue) form xueshengbiao where CEILING(shuxue)>=90
数学取上限大于等于90的
select FLOOR(shuxue) form xueshengbiao where code=8

select ‘这是‘+xingming+‘年龄的平方:‘,POWER(aqe,2) from xueshengbiao

select POWER(3,2)--表示3的2次方等于几就返回几


select ROUND(2.55,2)--前面是数 后面参数是代表四舍五入到小数点后的第几位

select shuxue,POWER(shuxue,2)as shehou from xueshengbiao

select SQRT(4) --求平方根
select SQUARE(4)--求平方

数据库(聚合函数)

原文:http://www.cnblogs.com/LCL390/p/4068003.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!