Need the difference between strong Ref Cursor and weak Ref Cursor examples
Oracle 9.2It would be great if someone can help understand the differences between
1 Strong Ref Cursors(return type)
and
2. weak Ref Cursor (no return type)
What I read is weak ref Cursor as sys_refcursor is better to use the ref Cursor, because in the case of slider strong Ref object type that will be returned must be declared in advance. It dosent make sense to me?
I start with the examples would be appreciate for advice
Strong Ref Cursor
create the package str_pack
is
type sref_type is ref cursor return emp % rowtype;
SVAR sref_type;
end str_pack;
Create procedure st_proc (eid in number, c1 on str_pack.sref_type)
is
Start
Open c1 to select empno, ename, sal from emp where empno = eid;
end;
declare
str_pack.sref_type C1;
type rec is RECORD (eid, ename varchar2 number (20), number of sal);
SheikYerbouti rec;
Start
st_proc(10,C1);
loop
When exit c1% notfound;
Fetch c1 into SheikYerbouti.
end loop;
Close c1;
end;
There could be errors in the above example but its basically to get a better understanding.
For weak Ref Cursor
procedure of the child
Create procedure child_proc (in number, c1 on sys_refcursor eid)
is
Start
Open c1 to select empno, ename, sal from emp where empno = eid;
end;
parent process
Create procedure parent_proc (recnum varchar2)
is
p_retcur sys_refcursor;
emp_row emp % rowtype;
Start
child_proc (eid, p_retcur);
loop
extract the p_retcur in emp_row;
dbms_output.put_line(emp_row.empno ||) e '|| emp_row. Ename | "wins". emp_row. SAL);
end loop;
end parent_proc;
Concerning
@
Hello
the fundamental difference is to do with the compiling and linking of runtime type that occurs.
The he should explain a lot more detail than I could ever!
http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:1640161160708
P;
Tags: Database
Similar Questions
-
HOW smart card smart card slots look like? What are the differences between smart card slots and cards express?
Hi Smitty,
Yes, so ExpressCard is an interface that has a USB port to this topic where I can plug in external devices to be attached to my computer right? I did a search on google but could not find photo Card Slot smart. I need a picture to get an idea of how look like a smart card Slot.
Next time try BING...
http://tinyurl.com/95rgwxw
http://tinyurl.com/9plc7ztScroll to the left view (image 5)
http://support.Dell.com/support/eDOCS/systems/latd610/en/ug_en/about.htm
-
What is the difference between full Windows 7 and Windows 7 license generator system?
The Windows 7 System Builder license cost about $100.00 and the full Windows 7 on $190.00.
I am upgrading to Windows Vista 64 for Windows 7 64. It is true that I will lose everything on my drive hard because I'll need to do a clean install?
See this thread:
-
Try to explain the difference between a DPS application and a coded / from scratch app.
Guys, I need help. I'm writing a guide for my clients regarding the DPS. I want to include some information on the differences between a DPS App and a code app. Any of you have ever had to explain that, and if you have, what did you say?
The most obvious difference is that a DPS app is what you get InDesign and a coded app, you must have a coder. But what are the feature differences? As I am not a coder and do not have access to the resources of coding, I'm at a loss.
Thank you
Karen
They are large enough.
In short, the DPS is a solution or a framework that allows non-technical people to create content for use on multiple platforms, with various limitations by platform. Especially there sense for Magazines and newspapers as a platform target, with a few exceptions.
For example, DPS does not access the hardware device API, such as the cameras of the device, the GPS or accelerometer. Limits of the DPS depending on also what license you buy, for example, if they are a client of the company, they would be able to build a showcase custom, which is not available in the Pro licenses or simple editing.
-
What is the difference between Ubuntu desktop edition and server edition?
What is the difference between ubuntu desktop edition and server edition?
Desktop Gets the window manager and terminal server :)
-
What is the difference between HP Photo Creations and Snapfish
I've been curious.
What is the difference between HP Photo Creations and Snapfish?
Hi Jeff17866. The difference between these two services are the location, accessibility and share-ability of the recorded images. Snapfish is a photo on the web edition and sharing and belonged to printing HP service. You upload your images on the Snapfish site and share with other sites (Facebook, Flickr, etc) by selecting the appropriate options. The images are then stored on the cloud, and you will be able to access it from any device with Internet access. So, if you want to easily share your photos with your friends and family around the country, Snapfish is a great tool to do. HP Photo Creations is a photo editing software that you download to your desktop. You can edit your photos and order prints just as with Snapfish, but all pictures remain on your hard drive. They can be shared by downloading files on the sites you want the images appear, but you are not able to access it on other devices. -Chauntain
-
What is the difference between windows 2000, XP and Windows 7
Hi please God let me know the difference between windows 2000, xp and win 7. I want t o knopw technical specification.
Thank you
JAI
You can find many differences between older and newer Windows versions. Windows is always improving with better technology. Visit this link for the versions to compare Microsoft Windows:
You can also see this article on the Microsoft Windows Web site: -
What is the difference between Windows XP Mode and Windows XP Mode "N".
It's confusing. Why are there two downloads of Windows XP Mode? And what is the difference between XP normal Mode and XP Mode "N"?
Thank you for your response.
The "n" of Windows versions contain no Windows Media Player. It is the result of an agreement with the European Commission to settle the dispute of the competition.
-
What is the difference between manual (startup type) and started (status)
What is the difference between manual (startup type) and started (status)
If I set the automatic startup type and the State stopped, what will happen?
It starts automatically at startup, but will not start?
Hi zkteh,
Please see article with some information:
I hope this helps!
-
What is the difference between Adobe Reader XI and Adobe Fine Reader?
What is the difference between Adobe Reader XI and Adobe Reader.Do Fine they do the same work or accomplish different tasks?
Hiddon icons simply shows a software that has been installed on your PC and is set to auto run at startup
I've included this info I thought you were trying to asertain what programs may have been installed on your PC and were running in the background.
-
What is the difference between Windows 7 OEM and the retail version of Windows 7?
Can someone tell me, what is the difference between windows 7 OEM and sales vs retail?
On Thu, 20 Sep 2012 19:56:47 + 0000, STEVE-5 says:
Can someone tell me, what is the difference between windows 7 OEM and sales vs retail?
There is no difference in the product itself.
Although if you get a generic OEM full version, it contains the
even software, it has the following disadvantages compared to the
commercial version:1. the biggest drawback of an OEM version (at least in the USA) is
that its license it permanently binds to the first computer, it is
installed on. He can never legally be moved to another computer, sold,
or given (except with the original computer). If the computer
dies or is stolen, your license dies with him.2. he can't do a clean install, not an upgrade.
3 Microsoft offers no support for OEM versions. You cannot call their
with a problem, but rather to secure the necessary support of your
OEM; who take in charge may go anywhere between property and non-existent. Or
You can get support elsewhere, like in these forums.
Ken Blake, Microsoft MVP -
What is the difference between CTS-PRJTR-GEN1 and GEN2?
Hi, I want to know the difference CTS-PRJTR-GEN1 and GEN2-PRJTR-CTS.
Is GEN sense "generation"?
GEN is used for production in this case. We had 1 generation projectors from the start and as you might have been replaced by the generation 2. The difference between these projectors GEN1 and GEN2 were model types.
CTS-PRJTR-GEN1 was a Sanyo PLV - Z4 or Z5
CTS-PRJTR-GEN2 was a Sanyo PLV-Z700
I hope this helps you.
PEI
-
Is someone can you please tell me what the "ESD" means to Acrobat Pro Win ESD XI? What is the difference between 'Acrobat Pro XI' and "Acrobat XI Pro Win ESD"?
Hi pattiparrish,
ESD stands for electronic Software Distribution. Acrobat XI provided compact disc of thought which included installation CD, on the other hand it was also provided by ESD, which included the direct download for Acrobat link XI products download Adobe Acrobat | Standard, Pro | DC, XI, X.
There is no difference in the application, the difference, it's just that how it is provided to the customer.
Kind regards
Nicos -
What is the difference between a mixture, Fix and Express?
I use regular PS on my computer but wanted to use a similar app on my ipad. Then I saw that there was a choice (ahhh!) What is the difference between a mixture, Fix and Express?
Hi Steve!
Thanks for reaching out.
Difficulty: Adobe free new Photoshop Fix, capture CC apps enhance your photographs and capture assets | PCWorld
Fixed introduced options that allow you to 'fix' and enhance your images in photo editing.
Mix: photo and image editor app | Download Adobe Photoshop Mix
Mix presents the composition options. This means that you can combine several images, cut out backgrounds and active layer.
Express: Photoshop Express is like a version blocked Photoshop with an interface that looks like the desktop application.
Thus, with respect to the app you choose, it really depends on what you would use it for. Do one of these hopeful sounds?
Let me know!
-Kathleen
-
What is the difference between 6.5.1 and 6.5?
Hello
Does anyone know what is the difference between 6.5.1 and 6.5 and the difference between 6.5 and 6.4? Thank you.
Find out what new sections of:
Maybe you are looking for
-
How Firefox reacts if different permissions are removed?
An application called Manager of advanced permissions is available for Android which allows the user to reinstall other applications like Firefox) with various permissions removed. Since I have no need for webrtc I would like to be able to remove the
-
How to cancel the keyboard sounds and vibrations on an Acer Iconia A1 - 840 8 inch tablet
Keyboard continues with the audio and vibration all in settings | Sounds | Tactile sound and vibrate on touch are unchecked. It is particularly strong for the Google Chrome browser.
-
Compatibility hard drive in an HP Pavilion laptop
I have a HP Pavilion dv6 notebook (Product no. LT070AV) running Windows 7 Professional with a Samsung HM640JJ hard drive that begins to fail (it doesn't have the test car). Because I am concerned about the reliability of the Samsung, I would replace
-
For some reason any the fact when my laptop HP screen goes off (as I put it to the University after a short period for battery power saving)--> takes a few seconds every time I turn on the screen. If I try to cancel, it freezes, like I said and I cos
-
I have a problem that only occurs during the closing down. When I select Shut Down I soon get a pop up that says... the application could not start correctly (0xc0000142) click on OK to close the application. window label is cmd.exe. Whether I click