Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

Topic: SQL*Plus and PL/SQL >> hii can any one help to solve this queary

Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property. You may review the entire Oracle Certification Program Candidate Agreement online Here.



  


 Title: hii can any one help to solve this queary
 yash  Posted: Oct 30, 2007 08:59:08 AM

 Total Post: 16
 Joined: Jan, 2007






 DECLARE
TYPE ga_Test IS TABLE OF SHE%ROWTYPE
INDEX BY BINARY_INTEGER;
va_Test_ID ga_Test;--.Test_ID ;
va_Test_Desc ga_Test;--.Test_Desc;
BEGIN
SELECT Test_ID, Test_Desc
BULK COLLECT INTO va_Test_ID, va_Test_Desc
FROM SHE
WHERE Test_ID = 4;
IF va_test_ID.count = 0 THEN
dbms_output.put_line('Bulk Collect: No Records in the Test Table');
END IF;
EXCEPTION
WHEN NO_DATA_FOUND THEN
dbms_output.put_line('Exception: No Records in the Test Table');
END;
/

 snehalatha
Posted: Nov 06, 2007 01:34:21 AM  

 Total Post: 169
 Joined: Apr, 2006






 
It Raises the Exception First

It will gives the output "Exception ---" Message.

 Time Zone: EDT

  




Forum Rules & Description


Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user




 








Get FREE Magazines

Top 10 Forum User

  Murtuja Khokhar857
  Mohammed Taj746
  positive fanatic483
  Jayanta Sur479
  Vigyan Kaushik386
  Gopu Gopi335
  Gitesh Trivedi322
  Vinoth Kumar264
  neeraj sharma258
  Ramesh Jois246






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software