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

oracle´æ´¢¹ý³Ì

create or replace procedure query_sal(eno employee.employeeno%type,name out
 employee.employeename%type,salary in out employee.sal%type)
is 
  v_sal number;
begin
  select employeename ,sal into name,v_sal
  from employee
  where employeeno = eno;
  salary := salary + v_sal;
  exception
  when no_data_found then
  raise_application_error(-20000,'¸Ã¹ÍÔ±²»´æÔÚ');
end query_sal;
--Ö´Ðд洢¹ý³Ì£º
declare
  name employee.employeename%type;
  salary employee.sal%type;
begin
  query_sal('1990-003',name,salary);
  dbms_output.put_line('¹ÍÔ±£º'||name||'µÄнˮΪ:'||salary);
end;
Ö»ÄÜÊä³öname,ΪʲôµÃ²»µ½salaryµÄÖµ£¿ÇëºÃÐÄÈ˰ï¸ö棬°ïÎÒ¼ì²éÏ£¡
hrϵÄemployees±í£¿

employee±í£ºsal,employeename,employeenoÈý¸öÊôÐÔÃû


salary := salary + v_sal;
ÔÚÕâÀïÏÈÊä³öÏÂsalary µÄÖµ

ÒýÓÃ
SQL code
DECLARE
NAME employee.employeename%TYPE;
--ÐèÒª¸³Ò»¸ö³õÖµ,ĬÈÏΪnull,null+ÈκÎÊý,½á¹ûΪnull
salary employee.sal%TYPE := 0;
BEGIN
query_sal('7566', NAME, salary);
dbms_output.put_line('¹ÍÔ±£º' || N¡­¡­
ΪʲôҪÏȸ³ÓèÒ»¸öֵĨ£¬ÎÒemployeenameû¸³ÖµÍ¬Ñù¿ÉÒÔÊä³öµ«salaryû¸³ÖµÄÜÊä³öÄØ£¡

nameÏ൱ÓÚÖ±½Ó¸³Öµ£¬
µ«salaryΪnull£¬µ¼ÖÂsalary + v_salҲΪnull
salary := salary + v_sal;


Ïà¹ØÎÊ´ð£º

Windows 7 ÔõÑù°²×°Oracle - Oracle / »ù´¡ºÍ¹ÜÀí

¸÷λ´ó¸ç£¬°ï¸öæ¡£

ϸöOracle for vista °æ±¾µÄ°²×°ÊÔÊÔ
10GºÍ11GµÄ 
http://www.oracle.com/technology/software/products/database/index.html 
------------------------------------------- ......

OracleµÄblob×Ö¶ÎÎÊÌâ - Oracle / ¿ª·¢

²éÁËÒ»ÌìµÄblob£¬»¹ÊÇûÀí½âµ½£¬ÎÒÏëÔÚVCÏ´æÈ¡¶þ½øÖƵÄÎļþ£¬Ê¹ÓõÄÊÇoo4o£¬ÕÕ×ŰïÖúÎĵµÉÏÃæµÄдÁËдÈëÊý¾Ý¿âµÄ´úÂ룬»¹ÊÇûд¶Ô£¬´íÎóÌáʾÊÇthis operation is not permitted on a empty LOB£¬ÕâÊÇʲôÒâ˼°¡£¿ÕÕ ......

server 2000Êý¾Ý×ªÒÆµ½oracle - Oracle / »ù´¡ºÍ¹ÜÀí

ÎÒÓÐÒ»¸öserver 2000ÀïµÄÊý¾Ý,ÏÖÔÚÏëתµ½oracleÊý¾Ý¿âÉÏÓÃ,²»ÖªµÀÓÐûÓиßÊÖÓмòµ¥ÓÖ¿ì½ÝµÄ·½·¨,ǰÌáÊDz»ÄܸÄÔ­À´oracleÀïµÄÔ­ÓеÄÊý¾Ý¿â,Ö»ÄÜн¨

ÒýÓÃ
°²×°£Ï£Ò£Á£Ã£Ì£ÅµÄ£Ï£Ä£Â£Ã£¬È»ºóÓãӣѣ̡¡£Ó£Å£Ò£Ö£Å£ ......

oracle °²×° 01092 ´íÎó - Oracle / »ù´¡ºÍ¹ÜÀí

oracle 11g °²×° 01092 ´íÎó,
ÈÕÖ¾ÐÅÏ¢£º
[oracle@linux trace]$ vi alert_orcl.log 
MMON started with pid=14, OS id=9089
RESETLOGS after incomplete recovery UNTIL CHANGE 522752
Errors in file / ......

sqlÓÅ»¯ - Oracle / »ù´¡ºÍ¹ÜÀí

select count(1) from FX_RETURNBOOKCHECKLIST fxreturnbo0_ where fxreturnbo0_.BOOKID='164 ' AND fxreturnbo0_.RETURNID='00025.S0000001' 
ÉÏÃæÒ»¸ö¼òµ¥µÄSQL,Ö´ÐÐʱ¼ä2.6à ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ