Oracle 的 Round 函數(四舍五入)函数
该函数用来返回一个四舍五入后的值
SELECT ROUND( number, [ decimalplaces ] ) from DUAL
參數:
必填项:number : 要处理的数值(数值表达式)
可选项:decimalplaces : 四舍五入时取的小数的位数,不填则返回整数
Sample :
select round(123.456) from dual; 得到 123
select round(123.456, 0) from dual; 得到 123
select round(123.456, 1) from dual; 得到 123.5
select round(123.456, 2) from dual; 得到 123.46
select round(123.456, 3) from dual; 得到 123.456
select round(-123.456, 2) from dual; 得到 -123.46
param = round(123.456,2) 即把123.456经四舍五入保留两位小数后的值123.46赋值给变量param
相关文档:
http://blog.sina.com.cn/s/blog_3fed8ad60100bydo.html
1、首先利用system帐户创建新的分区:
my_space1, my_space2(利用网页控制台创建表空间以及用代码创建)。
在实际工作中,不同的区可以位于不同的物理磁盘中,才有真正分区的效果。
然后:用scott帐户创建范围分区表:
create table t1(
id number(5) pri ......
Oracle的分区技术在某些条件下可以极大的提高查询的性能,所以被广泛采用。从产品上说,分区技术是Oracle企业版中独立收费的一个组件。以下是对于分区及本地索引的一个示例。
Oracle的分区技术在某些条件下可以极大的提高查询的性能,所以被广泛采用。从产品上说,分区技术是Oracle企业版中独立收费的一个 ......
Oracle卸载卸不干净,Oracle彻底删除的办法(winxp)
Oracle卸载卸不干净,Oracle彻底删除的办法(winxp)
用oracle的卸载程序并不能完全卸载干净。如之前的命名的oracle sid 不能再使用。会提示sid存在。下面是在winxp下完全卸载oracle的方法。
1、开始->设置->控制面板->管理工具->服务
&nbs ......
author:skate
tiime:2009-11-18
ORACLE等待事件类型【Classes of Wait Events】
每一个等待事件都属于某一类,下面给出了每一类等待事件的描述。【Every wait event belongs to a class of wait event.
The following list describes each of the wait classes.】
1. 管理类:Administrative
此类等待事件是由于DBA的 ......
--single line method
select ascii('A') Big_A from dual;
select chr(65) A, chr(122) z, chr(223) ch3 from dual;
select concat('sigo','way') from dual;
select initcap('sigoway') from dual;
select instr('ababab','a',-1,2), instr('ababab','a',1,3) from dual;
select instrb('ababab','a',1,3) from dua ......