PostgreSQL学习篇9.6 数学函数和操作符

来源:互联网 发布:it技术分类 编辑:程序博客网 时间:2024/06/05 01:20
数学操作符:比较新颖的:|/ :平方根||/ :立方根!:阶乘(例:5!)!!:阶乘(例:!!5)例:postgres=# select |/36; ?column?----------        6(1 row)postgres=# select ||/8; ?column?----------        2(1 row)postgres=# select 3!; ?column?----------        6(1 row)postgres=# select !!3; ?column?----------        6(1 row)数学函数:处理double precision数据的函数大多数是在宿主系统的C库基础上实现的;因此,精度和数值范围方面的行为都是根据宿主系统而变化的。

0 0