Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

oracleÊ÷ÖÐpriorµÄÓ÷¨

Êý¾Ý˵Ã÷Ò»ÇУº
create table dept(deptno number,deptname varchar2(20),mgrno number);
insert into dept values (1, '×ܹ«Ë¾', null);
insert into dept values (2, 'Õã½­·Ö¹«Ë¾', 1);
insert into dept values (3, 'º¼ÖÝ·Ö¹«Ë¾', 2);
commit;
select t.* from dept t;
      DEPTNO    DEPTNAME    MGRNO
1    1    ×ܹ«Ë¾   
2    2    Õã½­·Ö¹«Ë¾    1
3    3    º¼ÖÝ·Ö¹«Ë¾    2
select *  from dept   connect by prior mgrno=deptno ; --ÒÔ×Ó½áµãΪ¿ªÊ¼Ïò¸ù½áµã±éÀú
      DEPTNO    DEPTNAME    MGRNO
1    1    ×ܹ«Ë¾   
2    2    Õã½­·Ö¹«Ë¾    1
3    1    ×ܹ«Ë¾   
4    3    º¼ÖÝ·Ö¹«Ë¾    2
5    2    Õã½­·Ö¹«Ë¾    1
6    1    ×ܹ«Ë¾   
 select  *  from dept start with mgrno=1 connect by prior mgrno=deptno ---ÒÔ×Ó½áµãΪ¿ªÊ¼ÇÒ¿ªÊ¼Îª1£¬µÄ±éÀú
       DEPTNO    DEPTNAME    MGRNO
1    2    Õã½­·Ö¹«Ë¾    1
2    1    ×ܹ«Ë¾   
-------------------------------------------------------------------------------------------------------------
select   from dept  connect by prior deptno= mgrno
        DEPTNO    DEPTNAME    MGRNO
1    2    Õã½­·Ö¹«Ë¾    1
2    3    º¼ÖÝ·Ö¹«Ë¾    2
3    3    º¼ÖÝ·Ö¹«Ë¾    2
4&nbs


Ïà¹ØÎĵµ£º

Oracle 10g ÒªµãÕûÀí Ö® ¹ý³Ì¡¢º¯Êý¡¢³ÌÐò°ü¡¢´¥·¢Æ÷

¹ý³Ì¡¢º¯Êý¡¢³ÌÐò°ü¡¢´¥·¢Æ÷
 
1 ¹ý³Ì
£¨1£©¶¨ÒåÓï·¨
create [or replace ] procedure ¹ý³ÌÃû
[(²ÎÊý1 [in | out | in out] ²ÎÊýÀàÐÍ£¬
²ÎÊý2 [in | out | in out] ²ÎÊýÀàÐÍ£¬
……)]
is | as
begin
Ö´Ðв¿·Ö
exception
Òì³£´¦Àí²¿·Ö
end [¹ý³ÌÃû];
 
¹ý³ÌÖÐûÓÐdeclare²¿·Ö£¬ÉùÃ÷²¿ ......

oracleµÄ×óÓÒÁ¬½Ó

¶Ô×óÁ¬½Ó¡¢ÓÒÁ¬½ÓµÄÒÉ»óµÃµ½½â¾ö¡£
ÔÚOracle PL-SQLÖУ¬×óÁ¬½ÓºÍÓÒÁ¬½ÓÒÔÈçÏ·½Ê½À´ÊµÏÖ
²é¿´ÈçÏÂÓï¾ä£º
SELECT emp_name, dept_name
FORM Employee, Department
WHERE Employee.emp_deptid(+) = Department.deptid
      ´ËSQLʹÓÃÁËÓÒÁ¬½Ó£¬¼´“(+)”ËùÔÚλÖõÄÁíÒ»²àΪÁ¬½Óµ ......

OracleÊý¾Ýµ¼Èëµ¼³öimp/expÃüÁî

--ÈçºÎÔÚoracleÖе¼ÈëdmpÊý¾Ý¿âÎļþ£¿
 2006/2/16 zhanghua first create                            
     Êý¾Ýµ¼Èëµ¼³öimp/exp¾ÍÏ൱ÓÚora ......

Oracle 1z0 033 ÈÏÖ¤¿¼Ìâ×ÊÁÏ

Oracle 1z0-033 ÈÈÃÅÈÏÖ¤
1z0-033 Exam
Oracle9i Database:Performance Tuning
¿ÆÄ¿±àºÅ£º1z0-033
¿ÆÄ¿Ãû³Æ£ºOracle 9i Database:Performance Tuning
¿¼ÊÔ¼Û¸ñ£ºCNY898
¿¼ÊÔʱ¼ä£º120·ÖÖÓ
¿¼ÌâÊýÁ¿£º65
¼°¸ñ·ÖÊý£º72£¥
¸üÐÂÈÕÆÚ£º2010-01-23
Oracle 1z0-033 ÊÇÒ»¸öÅÓ´óµÄÆ·ÅÆÏµÍ³¡£ÈçǰËùÊö£¬Oracle²»½öÔÚÈ«Çò× ......

Oracle PL/SQL±à³Ì¹æ·¶Ö¸ÄÏ

Ò»¡¢PL/SQL±à³Ì¹æ·¶Ö®´óСд
¾ÍÏñÔÚSQLÖÐÒ»Ñù£¬PL / SQLÖÐÊDz»Çø·Ö´óСдµÄ¡£ÆäÒ»°ã×¼ÔòÈçÏ£º
¹Ø¼ü×Ö(BEGIN, EXCEPTION, END, IF THEN ELSE,LOOP, END LOOP)¡¢Êý¾ÝÀàÐÍ(VARCHAR2, NUMBER)¡¢ÄÚ²¿º¯Êý(LEAST, SUBSTR)ºÍÓû§¶¨ÒåµÄ×Ó³ÌÐò(procedures, functions,packages)£¬Ê¹Óôóд¡£
±äÁ¿ÃûÒÔ¼°SQLÖеÄÁÐÃûºÍ±íÃû£¬Ê¹ÓÃÐ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ