Exforsys.com
 
Home Tutorials Oracle 9i
 

Oracle 9i:Download example SQL Scripts used in Tutorials

 
Above are the SQL scripts used in the tutorials form 1 through 10. Please find the link for to download all the scripts in zip file.


Download Examples



Read Next: Tutorial 11 : Oracle 9i: Exception Handling



 

 

Comments


sonunag said:

  DECLARE
N NUMBER:=1;
BEGIN
LOOP
DBMS_OUTPUT.PUT_LINE (N);
N := N + 1;
EXIT When N>5;
END LOOP;
END;
/
May 10, 2005, 12:04 am

sonunag said:

  DECLARE
N NUMBER:=1;
BEGIN
LOOP
DBMS_OUTPUT.PUT_LINE (N);
N := N + 1;
EXIT When N>5;
END LOOP;
END;
/
May 10, 2005, 12:09 am

neelu.payola said:

  declare
flag number :=0;
n number;
i number;
begin
n:=&n;
for i in 2..(n-1) loop
if (n mod i)=0 then
flag:=1;
end if;

end loop;

if flag=1 then
dbms_output.put_line('not a prime');
else
dbms_output.put_line( 'is a prime');
end if;

end;
December 14, 2006, 6:18 am

neelu.payola said:

  declare
a number:=0;
b number:=1;
c number;
n number;
begin
n:=&n;
for i in 1..n loop
c:=a b;
a:=b;
b:=c;
dbms_output.put_line(c);
end loop;
end;
December 14, 2006, 6:41 am

Aritra Chattopadhyay said:

  Great :)
March 9, 2007, 4:58 am

manu_oracleapps said:

 
DECLARE
CURSOR C1 IS SELECT * FROM EMP;
EMP_REC EMP%ROWTYPE;
BEGIN
OPEN C1;

LOOP
FETCH C1 INTO EMP_REC;
DBMS_OUTPUT.PUT_LINE(EMP_REC.EMPNO ||' '||EMP_REC.ENAME ||' '||EMP_REC.SAL);
EXIT WHEN C1%ROWCOUNT >10;
END LOOP;
CLOSE C1;
END;
May 6, 2008, 3:10 am

sanjana said:

  thankyou
November 9, 2008, 7:01 pm

santhosh said:

  can anyone help me about the automatic creation of %rowtype...
January 27, 2009, 2:30 am

vasanta said:

  good
February 10, 2009, 12:23 am

Post Your Comment:

Members Please Login
Your Name:*
e-mail ID:(required for notification)*
Image Verification: 
 
 Subscribe    

Sponsored Links

 

Subscribe via RSS


Get Daily Updates via Subscribe to Exforsys Free Training via email


Get Latest Free Training Updates delivered directly to your Inbox...

Enter your email address:


 

Subscribe to Exforsys Free Training via RSS
 

 
Partners -  Privacy and Legal Policy -  Site News -  Contact   Sitemap  

Copyright © 2000 - 2010 exforsys.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape