"Formal OUT and IN OUT parameters can be returned in any order"
Hi,
From the PL/SQL Language Reference (11.2):
Formal OUT and IN OUT parameters can be returned in any order. In this example, the final values of x and y are undefined:
CREATE OR REPLACE PROCEDURE p (x OUT INTEGER, y OUT INTEGER) AS
BEGIN
x := 17; y := 93;
END;
What does this mean? How are the values of x and y in any doubt here? I tested it and x and y were set to 17 and 93 respectively.
Thanks in advance,
Jason
FrankKulash wrote:
I wouldn't count on variable a being 93 after running this (though it has been 93 every time I've tried it).
Right, even though it is quite logical OUT parameters are assigned in parameter number order (which is what Oracle is using in 10G & 11G - can't test on older versions), I didn't see it in documentation, so we can't assume it.
SQL> CREATE OR REPLACE PROCEDURE p (x OUT INTEGER, y OUT INTEGER) AS
2 BEGIN
3 x := 17;
4 y := 93;
5 END;
6 /
Procedure created.
SQL> DECLARE
2 a INTEGER;
3 BEGIN
4 p (a, a);
5 dbms_output.put_line (a || ' = a aftr calling p (a, a)');
6 END;
7 /
93 = a aftr calling p (a, a)
PL/SQL procedure successfully completed.
SQL> CREATE OR REPLACE PROCEDURE p (x OUT INTEGER, y OUT INTEGER) AS
2 BEGIN
3 y := 93;
4 x := 17;
5 END;
6 /
Procedure created.
SQL> DECLARE
2 a INTEGER;
3 BEGIN
4 p (a, a);
5 dbms_output.put_line (a || ' = a aftr calling p (a, a)');
6 END;
7 /
93 = a aftr calling p (a, a)
PL/SQL procedure successfully completed.
SQL> CREATE OR REPLACE PROCEDURE p (y OUT INTEGER, x OUT INTEGER) AS
2 BEGIN
3 x := 17;
4 y := 93;
5 END;
6 /
Procedure created.
SQL> DECLARE
2 a INTEGER;
3 BEGIN
4 p (a, a);
5 dbms_output.put_line (a || ' = a aftr calling p (a, a)');
6 END;
7 /
17 = a aftr calling p (a, a)
PL/SQL procedure successfully completed.
SQL> CREATE OR REPLACE PROCEDURE p (y OUT INTEGER, x OUT INTEGER) AS
2 BEGIN
3 y := 93;
4 x := 17;
5 END;
6 /
Procedure created.
SQL> DECLARE
2 a INTEGER;
3 BEGIN
4 p (a, a);
5 dbms_output.put_line (a || ' = a aftr calling p (a, a)');
6 END;
7 /
17 = a aftr calling p (a, a)
PL/SQL procedure successfully completed.
SQL>
SY.
Similar Messages
-
DEFAULT values for OUT and IN/OUT parameters in PL/SQL
Why are OUT and IN OUT parameters not allowed to have DEFAULT values assigned to them? Or is there a way around this?
thank uFor IN parameters this makes sense. For OUT parameters... hm... when you don't get anything out you also don't need a default value. I think the cases where you want to overload can't be compared with default values.
For IN a default value would be like:
If I don't add this parameter it should use 'DEFAULT' as INPUT value.
For an out parameter:
If I don't use a variable for this parameter the output value should be 'DEFAULT'.
and written into nirvana? it does not make sense to say I output something but I don't output something.
Message was edited by:
Sven W. -
I am using an iPad and iPhone and have exchange as my email. Both will only collect mails when I am in the wifi of the office, and not when I am out and about. I can't seem to get a fix for it.
This - https://support.mozilla.org/en-US/kb/how-make-web-links-open-firefox-default - didn't work?
-
if i open passbook on iphone 5, it always say cannot connect to itunes, any fix from apple tech support? and whats the reason for this problem? why do we have to figure it out and not even apple can give answer??
actually i found out how to fix it
1 sign out of apple account
2 close down passbook app
3 change year to 2013
4 reopen passbook and sign in at the button with your apple ID
5 change the time to auto update and it should work from now on.
this worked for me let me know if it work for you:) -
I have just bought a mac book air and set up the email account but it doesnt show my email sub folders and i cant find out how to do it can anyone please offer any advice.
Many thanks ToniThe warranty entitles you to complimentary phone support for the first 90 days of ownership.
-
IN,OUT and IN OUT Parameter Types
Dear All,
as per some book,
IN parameter uses Call by Reference
and OUT and IN OUT Uses Call by Value
we can use NOCOPY for Making OUT and IN OUT Call by Reference.
my small doubt is
when u r passing a reference of a Variable how oracle takes care that only IN Parameter are not allowed to change (in c and c++ we can say *para to access the variables) ,
i mean in case i use NOCOPY all parameter type are using CALL BY REFERENCE then how the "No Modify" is forced in case of IN Parameter.
Thanks for Reading Request.
Raj.The pl/sql compiler will simply not allow you to have a stmt that assigns something to an "IN" parameter. It can fully be enforced at compile time.
Tom Best -
In my contacts, I want to edit information. Some of this information is 'grayed out' and I am not able to delete it - any suggestions are greatly appreciated. Thanks
For example: SusanX has quit her job and I still have her employment email address and phone number. All her other information is the same but I want to delete the information no long viable. When I go into edit mode the information is grayed out and is not deletable. I went to my iCloud and tried to delete it there, no luck.
I am thinking I might just have to delete the entire contact card and just start from scratch with only her current information. Seems like there should be a way to delete only parts of the information rather that resort to start a new contact card.
Thanks for your help. I appreciate you taking the time to advise me on this.
Mona -
I have CS5 running on Windows but if I call an image into Photoshop it only displays on one view setting. Zoom in or out and I get a chequered grey background. Any suggestions how to rectify please?
<moved from Downloading, Installing, Setting Up to Photoshop General Discussion>
-
I am having troubles, when I open LR I get a message that there is an error and it will try to fix the error next time it opens. LR closes on it's own, I reopen it and get that same message next time it opens, and this is going on and on where I can not use LR, any suggestions? If I click on a different set of photos in the libary before I get that message I might or might not get the message next time it oipens, but I still can not get to those photos, and it is not just one or two but most of my photos. HELP!!!!
Thanks
CarolThe first thing I would suggest is for you to go to the folder containing your catalog, using your system browser. There will be a folder that has the extension .lrdata. Delete that folder, and then try to start Lightroom. If that doesn't work, replace your catalog with your most recent backup.
-
If I bought my iPhone in America from an Apple Store and have the receipt can I return it to a Japanese Apple store? Yes it is within 30 days, I bought it July 21st, meaning it is within 15 days, as well.
I would doubt it, but there's nobody here who can speak on behalf of Apple. Phone the Japanese store: they will know far better than us fellow users.
-
The main part of the safari page is grey and won't respond/can't type in any commands. I can move back through the previous pages, and even open new ones via the URL, but can't get onto the main part of the page and I can't get onto the 9 page option. !?
Help, please.Try clearing Safari's cache : Settings > Safari > Clear Cache (and Clear History)
If that doesn't work then try closing Safari completely and then re-open it : from the home screen (i.e. not with Safari 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Safari app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
A third option is a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot. -
I bought the " watch the throne " Album and it was " clean " can i return it
I bought the " watch the throne " Album and it was " clean " can i return it
What does: " it was " clean " " mean?
iTunes says all sales are final They may make a one-time except but I have no idea since I do not know why you want a refund.
Contact iTunes -
I try to copy a UPS shipping tracking ID code so I can transfer it to the UPS tracking web site--but the edit option on the Firefox is always greyed out and will not respond when selected--doesn't work. Therefore I have to copy the code on a piece of paper and then go to the UPS web site and type in the code. It was a lot easier when I could copy the code and transfer it to the UPS page>
That Edit menu in the Firefox menu button should have three icons (Cut, Copy, Paste) that are enabled if there is text selected or something is on the clipboard. The arrow at the right of the Edit item will open the Edit menu.
Press F10 or press and hold the Alt key down to bring up the "Menu Bar" temporarily. -
I am using My iPad with Apple TV, Airplay and projector in my classroom. The projector screens blanks out and back on several times during a presentation. It seems like a problem with connection but I'm not sure as it comes back on after a few seconds. Any idea of what is causing this and how it can fixed?
Try this - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.) No data/files will be erased.
Cheers, Tom -
I transferred all of my music from an older PC to my new one with Windows 7. Now I cannot edit selected songs. The information is greyed out and I can't type over it (on all my music except NEW downloads). Can anyone help? I even have a few songs with NO artist tag and I can't write anything in them either.
It's a permissions problem. Try this: right click on your iTunes icon and choose "run as administrator" that might fix it.
Maybe you are looking for
-
AudiCLip.play should return a boolean value
Java Experts, looks like it's a bug in java, the audioClip.play method should return a boolean value indicating whether it was able to play the clip or not. Because sometimes the method doesn't play anything. Right now the method plays asynchronously
-
I've recently been dealing with problems related to the startup Reading Preferences in which I deleted/hid/moved preference files to solve the long lagtime it took to startup. Problem solved but was unrelated to the Preferences files. Now it seems I'
-
Bonjour, Je n'arrive pas à installer la mise à jour 10.7.5 sur mon Mac Book Air. La mise à jour se télécharge et, aprsè redémarrage, s'arrête en plein milieu de la mise à jour en affichant ce message d'erreur : "La mise à jour « Mise à jour Mac OS X
-
Error adding printer to Bonjour
I am getting the error message "An error occurred when trying to add selected printer" when adding my HP PSC1200 connected to Airport Express via Bonjour. When I tried to add the printer manually in "System Preference" ->"Print and Fax", "Printer Bro
-
Help. Had to move iTunes Library...lots of exclamation points
I keep my iTunes library on an external HD. I had to switch to a new external, I copied the whole iTunes Music folder to the new one, went to preferences>advanced and pointed iTunes at the new library. I tried to play a song, or sync my iPod and iTun