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

Oracleѧϰ±Ê¼Çժ¼6


  declare
  begin
   --SQLÓï¾ä
   --Ö±½ÓдµÄSQLÓï¾ä(DML/TCL)
   --¼ä½Óдexecute immediate <DDL/DCLÃüÁî×Ö·û´®>
   --select Óï¾ä
        <1>±ØÐë´øÓÐinto×Ó¾ä
         select empno into eno from emp
           where empno =7369;
        <2>Ö»Äܲ鵽һÐÐ**********
        <3>×ֶθöÊý±ØÐëºÍ±äÁ¿µÄ¸öÊýÒ»ÖÂ
  exception
    --Òì³£
    when <Òì³£Ãû×Ö> then --ÌØ¶¨Òì³£
        <´¦ÀíÓï¾ä>
    when others then  --ËùÓÐÒì³£¶¼¿É²¶»ñ
        <´¦ÀíÓï¾ä>   
  end;
<Àý×Ó>
   ±àд³ÌÐò ÏòDEPT±íÖвåÈëÒ»Ìõ¼Ç¼£¬
   ´Ó¼üÅÌÊäÈëÊý¾Ý£¬Èç¹û
      Êý¾ÝÀàÐÍÊäÈë´íÎóÒªÓÐÌáʾ
      ÎÞ·¨²åÈë¼Ç¼ Ò²ÒªÓÐÌáʾ
      Ö»ÄÜÊäÈëÕýÊý,Èç¹ûÓиºÊýÌáʾ
   declare
    n number;
    no dept.deptno%type;
    nm dept.dname%type;
    lc dept.loc%type;
    exp exception;   --Òì³£µÄ±äÁ¿
    exp1 exception;
    num number:=0;  --¼ÆÊýÆ÷
    pragma exception_init(exp,-1); --Ô¤¶¨ÒåÓï¾ä
         --(-1´íÎóºÍÒì³£±äÁ¿¹ØÁª)
    pragma exception_init(exp1,-1476);
    e1 exception; --×Ô¶¨ÒåÒì³£±äÁ¿
   begin
    --ÊäÈëÖµ
     no := '&±àºÅ';
     num := num + 1;
     if no < 0 then
        raise e1;    --×Ô¶¨ÒåÒì³£µÄÒý·¢
&


Ïà¹ØÎĵµ£º

oracle ±í¿Õ¼ä²Ù×÷

oracle±í¿Õ¼ä²Ù×÷Ïê½â
  1
  2
  3×÷Õߣº   À´Ô´£º    ¸üÐÂÈÕÆÚ£º2006-01-04 
  5
  6 
  7½¨Á¢±í¿Õ¼ä
  8
  9CREATE TABLESPACE data01
 10DATAFILE '/ora ......

Introduction to Oracle Wait Interface notes

     ÎÄÕÂÌáµ½£¬ÓÃCache hit ratioµÄ·½·¨À´¼ì²éORACLEÐÔÄÜÎÊÌâ¹ýʱÁË£¬ÀïÃæÓоä·Ç³£ÐÎÏóµÄ»°£ºÕâÎÞÒìÓÚÒ»¸öÒ½ÉúÖ»ÖªµÀ¸ù¾ÝѪѹµÄÀ´ÖÎÁƲ¡ÈË£¬¶ø²¡ÈËÓÉÓÚÌÛÍ´£¬Éñ¾­ÐË·Ü£¬ÑªÑ¹ÔÚÒ»¸öºÏÀíµÄ·¶Î§ÄÚ£¬Ò½ÉúÈ´¸æËß»¼Õߣ¬Äãû²¡£¬µÈÄãѪѹµÍµÄʱºòÔÙÀ´¡£Í¬ÑùµÄ£¬ÎÒÃDz»Äܽö½ö¸ù¾ÝCache hit ratioÀ´ÅжÏORACLEÊ ......

Oracle¹éµµÄ£Ê½Óë·Ç¹éµµÄ£Ê½ÉèÖÃ

Oracle
¹éµµÄ£Ê½Óë·Ç¹éµµÄ£Ê½ÉèÖÃ
Oracle
µÄÈÕÖ¾¹éµµÄ£Ê½¿ÉÒÔÓÐЧµÄ·ÀÖ¹
instance
ºÍ
disk
µÄ¹ÊÕÏ£¬ÔÚÊý¾Ý¿â¹ÊÕϻָ´Öв»¿É»òȱ£¬ÓÉÓÚ
oracle
³õʼ°²×°Ä£Ê½Îª·Ç¹éµµÄ£Ê½£¬Òò´ËÐèÒª½«ÆäÉèÖÃΪ¹éµµÄ£Ê½£¬ÏÂÃæ¾ÍÆä·½·¨ºÍ²½Öè×öһЩ×ܽᣬËäÈ»¼òµ¥£¬µ«ÕâÊǹÜÀí
oracle
Êý¾Ý¿â±Ø±¸Ö®¹¤£¬¹ÊÓÐÈçϳÂÊö¡£
 
Àý×Ó ......

Oracle SQLµÄÓ²½âÎöºÍÈí½âÎö


 
˵µ½Èí½âÎö£¨soft prase£©ºÍÓ²½âÎö£¨hard prase£©£¬¾Í²»Äܲ»ËµÒ»ÏÂOracle¶ÔsqlµÄ´¦Àí¹ý³Ì¡£µ±Äã·¢³öÒ»ÌõsqlÓï¾ä½»¸¶Oracle£¬ÔÚÖ´ÐкͻñÈ¡½á¹ûǰ£¬Oracle¶Ô´Ësql½«½øÐм¸¸ö²½ÖèµÄ´¦Àí¹ý³Ì£º
    1¡¢Óï·¨¼ì²é£¨syntax check£©
    ¼ì²é´ËsqlµÄƴдÊÇ·ñÓï ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ