01 2009 档案
摘要:DBWn defers writing to the data files until one of the following events occurs: 1. Incremental or normal checkpoint 2.The number of dirty buffers reaches a threshold value 3. A process scans a specifi...
阅读全文
摘要:PGA : consist of 1. private sql area ; The private SQL area of a cursor is divided into two areas : a. Persistent area ; b. Run-time area ; 2. Session ...
阅读全文
摘要:oracle为外部表主要提供了两种驱动 1. the loader access driver, or ORACLE_LOADER 2. the import/export access driver, or ORACLE_INTERNAL 试验过程如下: 1.首先为用户scott付权限create any directory grant create any directory to scott...
阅读全文
摘要:----------------------------multitable insert-------------------------------- ----------------insert all---------------------------------------------------- select * from emp ; create table sal_histo...
阅读全文
摘要:select * from emp ; EMPNO ENAME JOB MGR HIREDATE SAL ...
阅读全文
摘要:oracle 10g 里面有scott用户 alter user scott account unlock ; 使用 scott 密码 tiger 进入,修改密码,改用户有emp 表; rank函数 : SELECT deptno, job, SUM(sal), RANK() OVER(PARTITION BY deptno ORDER BY SUM(sal) DESC) AS jobdep_ra...
阅读全文
摘要:以下两个语句查询结果是一样的,但是前者只能使用列号来排序,性能上,后者高于前者。 select p_org_no,org_type,sort_no,count(*),grouping(p_org_no),grouping(org_type),grouping(sort_no) from o_org group by p_org_no,org_type,sort_no union all s...
阅读全文
摘要:方差函数VARIANCE(x), 具体方法是: 设方差s,a为x1,x2...xn的平均值 , 则s = [(x1-a)^2+(x2-a)^2+(x3-a)^2+……(xn-a)^2]/n 标准差函数STDDEV(x), 具体算法是: 方差开方。 设标准查为& ,则 &^2 = s 但是我通过以下的实验,发现oracle是这样计算variance()的, s = [(x1-a)^2+(...
阅读全文

浙公网安备 33010602011771号