don't no why my statement is ignored in the reference cursor

Hello
my code looks like this
create or replace 
procedure fordefaultLan(cur out sys_refcursor)
as
cc Res_RelcountryLan.countrycode%type;
lid Res_Language.langid%type;
ab Res_Language.Abrivation%type;
begin
open cur for SELECT RCL.CountryCode, RL.LangID, RL.Abrivation  from  Res_RelCountryLan RCL inner join Res_Language RL ON RCL.LangId = RL.LangId;
loop
fetch cur into cc,lid,ab;
if cur%found then
dbms_out.put_line('the countrycode is:'||cc||'the language id is:'||lid||'the abbrivation is :'||ab);
else
exit;
end if;
end loop;
close cur;
commit;
end fordefaultLan;
when im running this
Error(12,1): PL/SQL: Statement ignored
Error(12,1): PLS-00201: identifier 'DBMS_OUT.PUT_LINE' must be declared
can you please fix my errors

thanking you;
Prakash

It should beOUTof the DBMS_. PUT_LINE

You wrote as DBMS_OUT. PUT_LINE

And, instead of construction IF to EXIT, you can simplify like

EXIT when cur%notfound;

Replace the code below...

if cur%found then
dbms_out.put_line('the countrycode is:'||cc||'the language id is:'||lid||'the abbrivation is :'||ab);
else
exit;
end if;

Published by: JAC on May 27, 2013 13:18

Tags: Database

Similar Questions

Maybe you are looking for

  • My theme is only show at the top of the screen. I hope for an image full screen. Can help you.

    Hello friends, I was hoping that the theme I've selected would fill the full screen. Is it possible to do so. Thank you

  • My MacBook Pro battery is drained very quickly.

    MacBook Pro, in early 2011. Battery is almost discharged quickly 100% - 10% within two hours. Not did something differently. Do I need a new battery. 2.7 Intel core 17 CHz / 4 GB. 10.8.5 OX.

  • Photos and videos are blurry loading

    For about a month, whenever I chaque fois que je vais'm going to online photos load blurry, as are videos. At the beginning it was just to do it on YouTube and so I thought it was manually loading funny, but it wasn't and then shortly after any kind

  • How to stop the menu bar disappearing

    I HAD THE PROBLEM WITH THE MENU BAR DISAPPEARS FROM MY SCREEN.  WORKING IN EL CAPITAN 10.11.3 Have been where I was told to go through other sites - unable to bring back the menu bar and lock it to the top of the screen. Please help/tips Thanking you

  • HP Probook G3 450: Start slowly after bios update

    Hello everyone, I am a new user of laptop Hp so I need your help, I want to thank you for your time to read and help me with this problem. Yesterday, I updated the bios Hp SoftPaq Download Manager recommendation. Progress to succeed and the result of