can we write the function in a select statement?
I have function and there Out parameter, so in this case I can write a select statement to my function to retrieve the value?user11195165 wrote:
I have function and there Out parameter, so in this case I can write a select statement to my function to retrieve the value?
Never mind that it's bad! for a function to have an OUT parameter. That's not how the functions should be designed and written.
It's like with a knife like a spoon to eat porridge. Of course, it can work in a way. But why? A knife was never designed to be a spoon - and while it may work of porridge to eat, you'll have a hell of a time trying to use it to eat the soup. So, use the right tool.
In other words, a function is the wrong tool for the job. Use a procedure.
Tags: Database
Similar Questions
-
I can't access the function in the panels on the right. Open the control panel but I can't click on anything.
I can also change the font size, etc. after Select test.
I have reset the preferences, but does that to let me use my tool of choice now.
You set the font size of Windows at 150%. Set it to it's default of 100% or disable aero.
Bob
-
How can I write the trigger for the global temporary Table
Hi Grus,
How can I write the trigger for the global temporary Table.
I created the TWG with trigger using the script below.
CREATE A GLOBAL_TEMP GLOBAL TEMPORARY TABLE
(
EMP_C_NAME VARCHAR2 (20 BYTE)
)
ON COMMIT PRESERVE ROWS;
CREATE OR REPLACE TRIGGER TRI_GLOBAL_TEMP
BEFORE DELETE, UPDATE OR INSERT
ON GLOBAL_TEMP
REFERRING AGAIN AS NINE OLD AND OLD
FOR EACH LINE
BEGIN
INSERT INTO VALUES EMPNAME (: OLD.) EMP_C_NAME);
END;
/
trigger was created successfully, but her would not insert EMPNAME Table...
Please guide if mistaken or not? If not wanting to give a correct syntax with example
Thanks in advance,
Arun M MBEGIN INSERT INTO EMPNAME VALUES (:OLD.EMP_C_NAME); END;
you are referencing old value in insert stmt. BEGIN INSERT INTO EMPNAME VALUES (:new.EMP_C_NAME); END;
then run your app, it works very well...
CREATE GLOBAL TEMPORARY TABLE GLOBAL_TEMP ( EMP_C_NAME VARCHAR2(20 BYTE) ) ON COMMIT PRESERVE ROWS; CREATE OR REPLACE TRIGGER TRI_GLOBAL_TEMP BEFORE DELETE OR UPDATE OR INSERT ON GLOBAL_TEMP REFERENCING NEW AS NEW OLD AS OLD FOR EACH ROW BEGIN dbms_output.put_line(:OLD.EMP_C_NAME||'yahoo'); INSERT INTO EMPNAME VALUES (:new.EMP_C_NAME); dbms_output.put_line(:OLD.EMP_C_NAME); END; / create table EMPNAME as select * from GLOBAL_TEMP where 1=2 insert into GLOBAL_TEMP values('fgfdgd'); commit; select * from GLOBAL_TEMP; select * from EMPNAME; output: 1 rows inserted commit succeeded. EMP_C_NAME -------------------- fgfdgd 1 rows selected EMP_C_NAME -------------------- fgfdgd 1 rows selected
He got Arun
Published by: OraclePLSQL on December 28, 2010 18:07
-
I can't find the function "bookmark all tabs" in Firefox 5 used to be there. He moved or just removed?
You can also right click on a tab to see this menu item.
-
How can I write the value of floats Unitronics vision230 PLC with modbus Ethernet
How can I write the value of type Float in unitronics PLC Vision230 modbus ethernet (Ethernet Master Query.vi MB) usinsg I read and write register 32 bits, for example, I want to write the value 23.45 2nd Add. MF. And registry MF is the 32-bit registry. I read and write register 32-bit.
Narendra.
Narendra,
Two characters can type cast into a uint16 you VI supports.
To summarize. Take one (4 bytes). Flatten it to a string (4-byte) divided this string into two parts of 2 bytes each. Cast in u16 (16 x 2 = 32-bit).
However, if you really want to follow the IEEE standards then you will need refer this KB. His is not that simple, but seems closer to what you are looking for.
Amit
-
Silverlight.config.exe. appears again msg then causes a gel
I can not write the new message of Windows Live Essentials due to the demand of Silverlight.configuration.exe freeze my computer. How to replace this command?Hi JaphetMorales.
(1) did you change on your computer before this problem?
(2) what operating system is installed on your computer?
What version of the operating system Windows am I running?
You can uninstall and reinstall Silverlight and then check.
http://www.Microsoft.com/getSilverlight/get-started/install/uninstall-win.aspx
See also:
-
How can I remove the hotmail homepage ads selection?
How can I remove the hotmail homepage ads selection?
Windows Live Hotmail is supported in this forum
http://answers.Microsoft.com/en-us/windowslive/Forum/Hotmail?tab=all -
How can I disable the function on my v5 acer inspire?
OT : How can I disable the function on my v5 acer inspire where when you click on the mouse somehow your whole page disappears? It wasn't like this in one of my computers before windows 8.
How can I activate noff functionality of mouse that causes your entire page to disappear when you click on it the wrong way .i have an acer v5 inspire.please help. Ive had a lot of computers, but this feature never appeared until the windows 8
Please help its driving me crazy
James m
Hello
Thanks for posting your query on the Microsoft Community.
According to the description, I understand that you are facing problems with your mouse.
I suggest you to refer to suggestions of Mohammad_Imran replied on 5 April 2013 and check if that helps.
You can also check:
Hope this information helps. Please let us know if you need any other help with Windows in the future. We will be happy to help you.
-
I can´t use the function "save PDF-portfolio as a site" in the file menu - it is greyed out.
I use Windows 10 House and Acrobat DC
Not all portfolios can be saved as a site.
It is possible with http://blogs.adobe.com/pdfdevjunkie/wp-content/themes/Adobe_PDFDevJunkie/download/Billboar dTemplate.pdf
-
How can I recover the functions drag horizontal and vertical to center the portions of the image being developed?
1 - question double deleted
2 the name of the program you are using then a moderator may move this message to the correct program forum
This forum Cloud is not on the program problem... help a program would be Photoshop Lighroom or Muse or?
-
How to loop through the results of a select statement in a process flow?
Hello
I use Warehouse Builder 10 g R2.
I'm trying to implement a loop in a process stream that runs through the results of a select statement.
In pl/sql, it would be implemented as a for loop by using a slider, but I simply doesn't work how to do this using the loops in the process flow.
Someone at - it ideas?
Thank you
LiffeyLiffey,
Look at this thread
For or while loop a loop in the process flowKind regards
Oleg -
How can I change the function of the multimedia button in my keyboard?
Hello
I want to change the function of the media in my keyboard button, because if you press the button, the media Center launch, but the problem is, I can´t use the media center due to many reasons, so I want, when I press the media button, only Windows Media Player launches and not the Media Center?
Who knows what I have to do?
Thank you very much for your help!Hello Sailor
Can you please write what model of phone you have?
Anyway, check it please Toshiba controls tool. You can find it in the control panel.
-
How can I change the color of text selection when you edit a pdf file?
I was fussing around with preferences in Adobe Acrobat Pro XI (Mac version) and off the selected text color when the text selection. I don't know what preference I changed and can't seem to find a second time to restore the color of text selection. Usually, in Adobe Acrobat Pro XI, when the selection of text (note: NOT the text stressing the function), AAP XI has a color to the selected text. This preference restaurantrare the saltsummer color of the text when you use the selection tool i-beam appearing to the left of the hand tool?
Now, it simply displays the text selected, as shown in the figure below.
Once again, please, note that I don't watch highlight tool 3rd from the left in the picture below.
My guess is it is something under Edit - Preferences - accessibility, possibly the "high contrast colors" option, or 'always use the system selection color. "
-
How can I change the size of a selection list?
Hi all
I know it's probably a beginner questiopn, but I spent some time in train and we have come to the forum to watch and found that nothing related to it.
I m using apex 3.1, and I would like to know in what part of the question, I set its size, in the case of a selection list where I put its size?
HTML I would like this:
-----------------HTML CODE--------------------------
< select size = "18" class = "bigselect" >
< option > map 1 < / option >
< option > map 2 < / option >
< option > map 3 < / option >
< option > map 4 < / option >
< / select >
-----------------HTML CODE--------------------------
I've tried these and nothing:
Attributes of HTML table cells
Attributes of the Form HTML element <-this one says I can t set id and size in
Shape element Option attributes
Thank you and best regardsHello
I misunderstood the first time :)
It seems that the APEX is automatically affecting the SIZE 1 attribute when you create a list to select. I don't know if you will be managing change this value before the page is rendered. But if it's really important for you, maybe, you can change this attribute after the page is rendered using javascript.
Add this function in the page header section:
Then on the same page, insert the following code in the Page HTML Body attribute:
onLoad="setLovSize();"
I hope this helps.
--
Paulo Vale
http://Apex-notes.blogspot.com -
How can I change the function of the Run button?
I recently got a new hard drive and had to install all my software from National Instruments
Now, the run button in TestStand runs only the selected sequence. How can I change to Pass simple execution of the process template and MainSequence?
Right click on the run button and choose Customize...
Now click on the tab orders and click Rearrange Commands.
Click the radio button next to the toolbar: select Debugging from the drop-down next to him.
Select the command with the green arrow and click Remove.
Now click on the Add button and select Execute under categories:
Under orders: scrolling until you find the one you want. In this case second execution Entry Point. You will need to repeat the add other buttons.
Highlight the one you want and click OK.
Click Close and close when you are finished.
Maybe you are looking for
-
Satellite A300 - 1 M 1 - Format without recovery CD?
Hello! I have my Satellite A300 with Windows Vista for a while now, but it started to give me some problems a few days ago. All of a sudden, windows not to load, it frozed on the windows logo screen. Because I needed to retrieve files I have installe
-
How can I get through my hearing aids Halo text alerts?
I recently bought halo hearing aids, my 5s, OS 9.2.1 rings through them very well, but I can't listen to the text or email alerts, ringtones of reading button is enabled and set to auto audio routing, any suggestions?
-
How to get rid of the Trojan horse: win / sirefef. AH
How can partially removed Microsoft safety scanner, I get rid of what is always there
-
Hi I noticed recently that now my restoration of the work system - properties - show two drives C: and D: WHY? I want to only show C: He has never done this before and I don't want to show him D: at all, I have a HP and the D: drive is my restore di
-
Windows 8 Advanced Boot does not work * SOLVED *.
I recently got the Ouya console and I'm looking to develop games for it. Part of the configuration forces me to install the drivers manually unsigned, but Windows 8 prevents this from happening. I need to disable driver signing enforcement and I read