DIFFERENCE BETWEEN THE STRONG AND THE SLIDERS OF THE WEEK IN ORACLE

Hi all

Can someone tell me please... What the Ref cursor.in, in which case we use the ref cursor .and what is difference between strong and week ref cursor.

Thanks in advance,
Sanjeev.

Hello

 What is Ref Cursor :
---------------------------------------------------------------------------------------

-->It is aslo a user defined type
-->ref cursor allows you to declare the  cursor variable those are independent of select statement
 i .e
   the cursor variable declared using ref cursor type is ready to accept any select statement dynamically at the time of opening

-->Ref cursor are of two types

  1) A Strong ref cursor(also called static structure type)
2)Weak ref cursor(also  called dynamic structure type )

1)Strong ref cursor:
-->When return type included then it is called strong or static structure type
-->static ref cursor support different  type of select statement but all of same strucure ,but not neccessary that the table should be same
2)Weak Ref  Cursor:

  this ref cursor allows us to any  type of select statement irrespective of data structure . i .e any table

Ref Cursor:

Syntax:
  type  is ref cursor [return ];
syntax for open statement:
  open  for select statement .......;

Example of strong cursor

 --------Strong cursor ----------------------

 declare

 type emprefcur is ref cursor return emp%rowtype;
 ec emprefcur;
 v_ec ec%rowtype;
begin
  open ec for select * from emp;
 loop
      fetch ec into v_ec;
      exit when ec%notfound;
     print(v_Ec.empno);
     print(v_ec.ename);
 end loop;
close ec;

 print('-------------------------------------------------------------------------'):
  open ec for select * from emp;
 loop
      fetch ec into v_ec;
      exit when ec%notfound;
     print(v_Ec.empno);
     print(v_ec.ename);
 end loop;
close ec;

 end;

Example of low slider
-------------

declare
------------------weak cursor --------------------------
type refcur is ref cursor;
 xc refcur;
v_Ec emp%rowtype;
v_dc dept%rowtype;
begin
  open xc for select * from emp;
loop
     fetch xc into v_ec;
 exit when xc%notfound;
  print(v_ec.ename);
  print(v_Ec.empno);
end loop;

close xc;

print('--------------------------------------');
open xc for select * from dept;
loop
     fetch xc into v_dc;
     exit  when xc%notfound;
  print(v_dc.deptno);
  print(v_dc.dname);
  print(v_dc.loc);

end loop;
close xc;

end;

Thank you
Prakash P

Published by: prakash on December 19, 2011 21:14

Tags: Database

Similar Questions

  • How to know the difference between the Dates in Oracle.

    Hello

    Suppose we have two Dates say November 5, 2005 and October 12, 2007.

    Is it possible to know the total difference between these Dates in Oracle.

    Thank you

    You can subtract date-objects. The result is the difference in days.

    select  to_date('12-10-2007','DD-MM-YYYY') -  to_date('05-11-2005','DD-MM-YYYY')   from dual;
    

    In your example: 706 days

    Published by: hm on 25.10.2010 12:33

    Please look also for "Oracle Date arithmetic" in the Oracle Documentation or Google.

  • The difference between the strength of the signal and quality?

    Hi all

    According to the Cisco documentation

    Low RF signal strength does not mean the lack of communication.

    The quality of the signal is low means poor communications.

    If someone can explain to me the difference between the power of the signal and the quality of the signal?

    In accordance with my AP home I see that this signal strength is measured in numbers like 50% or 100%.

    But what is the quality of the signal and how to measure me?

    Thank you

    Mahesh

    Big question...

    First, let's look at the notion of signal quality and strength... Suppose for a minute you're front row at a rock concert right next to the speakers. Sound is loud, you can't hear anything else that scream. It is an example of a strong signal but poor quality.

    As for the signal and the noise of measurement or should we say quality of signal. Providers sometimes give you a % or dB scale when ranking signal. You can't really do headers or tails of the % scale because each vendor has % different measures. But check your access point, because you will be able to change in dB.

    Look at dBm. At the moment my client shows:

    Signal - 59 dBm

    Noise - 98 dBm

    The dB scale is simple. More PB the STRONGEST signal. You'll see - 59 of the signal is good, in fact, I'm about 50 feet from the AP. If you are under the ap you will get as a - 30ish. Noise, we do not want to be noisy, if we want to see the noise to-100. More low is the dB of noise as loud noise.

    So we're back out the example above. Next to the speaker, you're showing tell - 30dBm, but your noise can be as - 70dBm...

    Does make sense?

    Normally, you want to see your signal not exceeding 67 - not for voice or - 76 for the data. And your noise should be greater than-90.

  • What is the difference between the file index and swap file

    What is the difference between the .pag and .ind files?

    I know that the file contains data real means-data blocks and cells and the index file contains the pointer to the block of data that is available in the paging file.

    but is there another difference? What about size?

    In my opinion, pagefile size is always greater than the index file. It is Scripture?
    If the size of the Index file is larger than the pagefile so that it happened? If the size of the index file is larger that the pagefile is then write?


    If I deleted the page file, then it is assigned to the index file?
    or
    If I deleted some data block of the pagefile, then how is affects the index file?

    Published by: 949936 on August 27, 2012 06:32

    Are these test questions? Well, in the hope that in fact 949936 instead has a strong sense of the investigation, here goes:

    In my opinion, pagefile size is always greater than the index file. It is Scripture?
    If the size of the Index file is larger than the pagefile so that it happened? If the size of the index file is larger that the pagefile is then write?

    ^ ^ ^ Generally the. IND index, or the files are smaller than the. PAG page file (s). However, there is a minimum eight megabytes index file size. If clearly on a BSO your database and send a single number (which equals one block), you will have a. IND, quite a bit larger than the. PAG.

    For example, I have cleared out the good old Sample.Basic and then sent the number "5" in the "New York"-> "Cola"-> "sales"-> "Jan"-> "real." This resulted in a. The IND of 8 216 576 bytes, and a file size. PAG 149 bytes file size.

    If I deleted the page file, then it is assigned to the index file?

    ^ ^ ^ Are you sure this isn't some kind of certification exam? Do you mean that you went down to the BONE and deleted the file? Irretrievably corrupted, the database is what will happen. If you want to clear data, I guess it depends on how you do it. Send to a #Missing 5 has increased the size of the. PAG 149 to 229 bytes file. My guess is that doing so forced the overhead on Essbase. There is no impact on the. File of the IND in this context.

    If I deleted some data block of the pagefile, then how is affects the index file?

    ^ ^ ^ If you delete data into Essbase (whether through the above method which clears completely a block or CLEARDATA command) and then force a restructuring by MaxL or EAS, if the number of blocks have been reduced enough to cross this limit of eight megabytes, you should see the. IND file size down. I see usually do this all the time with backup processes every night that have a component of restructuring for them.

    I hope that answers your questions. You can watch the SER60 that there is a fairly comprehensive review of storage BSO which are.

    Kind regards

    Cameron Lackpour

  • Difference between the USA and the Australian version of the EP 11

    There is a significant price difference between American and Australian from Adobe. For an upgrade, it cost US $ 80 in the United States and 120 AUD in Australia. At present, the AUD is stronger than USD!

    I'd be any disadvantage if I chose to download from OUR site?

    There is no difference between the USA and AUD software.

  • Difference between the message and conversation

    What is the technical difference between a message and a conversation. Is that when multiple messages are in 1 conversation?

    A message.
    An email received or sent is a message.

    A conversation can be launched with a message.
    A conversaion can have messages, screw where the example: the 'Reply' button was used and enamel is spent here and there with the comments.

    If you select multiple messages in a list, they will be displayed below in the Message pane in the form xx number of conversatons.

    If you right-click on a message in the list and choose "open in a conversation." then it will open in a new tab showing all the emails included threaded, which are relevant to that conversation, both received emails and those you sent.

  • What is the difference between the Firefox for android and Firefox beta

    I noticed in the store of Google play there are two applications of Firefox. What is the center of the difference between the two Firefox browser for android and Firefox beta.

    Firefox for android is just the regular and stable browser that is recommended. Beta of Firefox for android is the next version of firefox that is in beta (test yet, but almost ready) step and is not ready for an official release because he has a few folds and fixes to do. But firefox for android beta has some of the features the most recent Firefox should be released soon as an official version.

    The current version of firefox for android is 34.01.
    The current version of firefox for android beta is 35.0.

  • Y at - there a big difference between the base of the m3 and m5 models?

    I had my m3 2016 Macbook for a week so just thought I would ask so that I have time to exchange it if need be. I wondered outside storage space, y at - it a big difference in processors Core of m3 and m5? Apple uses a "customized" version of the processors? I ask because Apple lists the m3 1.1 Ghz but not apple models are call at 900 mhz.

    The processor is clocked at 1.1 Ghz. There are different models made by Intel, including that which is supposed to be clocked at 900 Mhz. Apple does not use a customized version of the CPU. The differences between the M3 and M5 model is displayed on the Intel Web site. Among the differences are the M5 is clocked at a higher speed and the M5 is generally about 15-20% faster than the M3 at the same clock speed.

  • What is the difference between the export photos and pictures of unmodified export

    I'm trying to export my library of photos of 30 GB on a hard drive. When you choose file > export gives two options: export the Photos... and export Unmodified Original...

    Is there a difference between the two options?

    When I export the location data is backed up?

    The original unmodified are image files full-size that have been imported into the library at the start.

    Export Photos will give you the edited version (if it is edited).  Also, you will have a chance to change the size of the file (Mbs) and/or the image (pixels) size when exporting and to change the JPEG, tiff or png.

  • Differences between the Mac Pro 2009, 2010 and 2012 Logic Board

    What are the differences between the logic board in the Mac Pro 2009, 2010 and 2012? In particular, what are the differences in the logic board between the MacPro4, 1 and MacPro5, 1? When a 2009 logic board is updated to 5.1 firmware is identical to the logical tips 2010 and 2012? Updated to 5.1, what is happening with the SMC firmware?

    Answers in-depth in this type of broad would be book-length responses.

    Where are you going with this?

  • What is the difference between the Service Station and Tempro?

    Searched for information on this, but have not been able to find:

    What is the difference between the Service Station and Tempro?

    I just run the wizard upgrade Toshiba and it installed the gas station but Tempro is already installed and seems to do the same.

    Concerning

    Bushy

    Hello

    These two tools are Toshiba one informs you of the new driver updates available on the Toshiba driver page.

    AFAIK Tempro is slightly older than the gas station.
    In addition the gas station seems to provide a bit more options and features like tool Tempro.
    However, I recommend using one my favorite utility's Service Station

  • Difference between the Tecra A, M and S series

    Hello
    What really is the difference between a, M and S Tecra series? Which should I choose?
    It is obvious that the Tecra is supposed to be a high-end standard in the range of the portable Toshiba, but why they do different Tecra series?

    I'm sorry if this has never asked, but can't find the answer.
    And thanks to all who responded.

    Regars,
    -nov

    Hello

    I am user Tecra M and each series has my own opinion design and hardware configuration. The availability of different series can be nice for potential buyers and costumers let them choose the preferred product.

    If you need Tecra for business, I can really recommend laptop Tecra. I use it more than two years and it works like the first day. It is very important that you know exactly what you want to do exactly, and you can choose your favorite.

    If you want to write what you expect from a laptop. It will be perhaps easier to give you a specific recommendation.

    Good bye

  • What is the difference between the Satellite A660/0TK and A660/07 r

    What is the difference between the models Satellite A660/0TK and A660/07 r? What is a revision?
    And satellite A660/07R come with built-in transmitter 3D vision IR and Nvidia optimus graphics switch? U.S. version is updated with the same. It is sold in Australia

    Hey,.

    Two laptops, you can compare Toshiba Australian page:
    http://www.MyToshiba.com.au

    Computers are similar, but by Satellite A660/0TK 6 GB RAM instead of 4 GB on A660/07R and 750 GB HARD drive better rather 640GO.

  • What is the difference between the password and access code

    I get all the IDs and passwords and none are accepted

    "I received message' iPad requires your password after restart", but it does not accept passwords

    What is the difference between the password and access code

    Standard codes which block the iPad are 4 or 6-digit. You can set a more difficult to decode, personalized access code / password in the settings using letter and numbers if you wish.

    A password is a series of numbers, symbols and letters that a user putting in place to protect the information in a frame, a web site, e-mail, etc. This may actually be a word or series of words, if you wanted to set up in this way.

    Your iPad is looking for this 4- or 6-digit code. If you can remember, you must restore the device so for free.

    If you have forgotten the password for your iPhone, iPad or iPod touch, or your device is disabled - Apple supports

  • Is there a difference between the mw600 and mw600s

    Hello

    I was wondering is there a difference between the stereo Bluetooth headset MW600S http://store.sony.com/webapp/wcs/stores/servlet/ProductDisplay?catalogId=10551&storeId=10151&langId=...

    and the MW600 like here http://www.amazon.com/Sony-1264-5582-MW600-Wireless-Headset/dp/B008NA985C/ref=cm_cr_pr_product_top

    Thank you

    Hello ERGIC53,

    Model numbers that you're talking about are for stereo headsets Bluetooth from Sony Ericsson. Sony mobile phones have their own separate community and are therefore better qualified to deal with problems or questions, you can have on Sony mobile phones. You can visit the community Mobile Sony here.

    http://talk.sonymobile.com/community/support

    If my post answered your question, please mark it as an "accepted Solution".

  • Difference between the G20 and G25 models

    Hi people!

    I searched your laptop and I was amazed by the Qosmio.
    When I was going to order it, I noticed that there are many models of the G20 with different specifications. Also, I found G25 on internet research and found no difference between the G25 and G20 except receiver TV G25 is NTSC and G20 was released on March and G25 was in June. Instead, they have the same specifications for the hard drive.

    I live in the Portugal and the model Qosmio I can find that this is the G20-118. I was looking for the model that has 2 x 100 GB SATA HD, but cannot not thought about it.

    Internet research I found Qosmio G20-111 which has 2 x 100 GB SATA HD, but on the web page mentioned that it was a Pentium III processor (ridiculous, isn't?). I was looking for more reliable information.

    Already searched for toshiba pages and found no specifications for all models I found 490LS on the research on the web as the G20 - 102, 105, 106, 108, 109, 111, 118, 123,...

    Can someone help me with this? Are there any reliable web page where I can see the differences between the models? is there a .pdf or anyone who can please give me some advice?

    Money is not a problem at this time to acquire the laptop, I'm looking for only the laptop performance more!

    Best regards
    João Pereira

    Hello

    It of very difficult to say what camera is best, because there are many models with different parts.
    However, I found page with description of the G20 and G25.
    Take a look at this link.

    http://www.releasereview.com/Toshiba-Qosmio-G20-105-108-114.aspx?d=0101000580926052005

    Good bye

Maybe you are looking for