Calling function in oracle stage
Moderators: chulett, rschirm, roy
Calling function in oracle stage
Hi All,
How can i call function with output argument in oracle stage
as function(output);
i tried calling
select function(':1') from DUAL;
Iam getting following error...
main_program: aptoci.C:446 failed. Message: ORA-00911: invalid character
Query failed: SELECT function(':1') from DUAL;
; Oracle Error: 0
Any suggestions...
How can i call function with output argument in oracle stage
as function(output);
i tried calling
select function(':1') from DUAL;
Iam getting following error...
main_program: aptoci.C:446 failed. Message: ORA-00911: invalid character
Query failed: SELECT function(':1') from DUAL;
; Oracle Error: 0
Any suggestions...
Hi chulett,chulett wrote:You cannot if you want to leverage a bind parameter like that, I'm afraid. Where are you trying to do this, on the source or target side? What are you trying to bind into that :1 spot?
actually i went through dsxchange for calling a function and found this syntax.
Can you tell me how to call a function with arguments in DS.
thanks..
-
- Participant
- Posts: 251
- Joined: Mon Jun 09, 2008 5:52 am
-
- Participant
- Posts: 437
- Joined: Fri Oct 21, 2005 10:00 pm
Srinivas,
That's not what Craig is asking you. He wanted to know what columns you need to pass to the function to have it return your result. I think he understood the syntax you are stated.
I believe the syntax you would need to use is:
select functionname('ORCHESTRATE.COLUMNNAME') as RETURNCOLUMNNAME from dual
This would be done from a sparse lookup obviously.
That's not what Craig is asking you. He wanted to know what columns you need to pass to the function to have it return your result. I think he understood the syntax you are stated.
I believe the syntax you would need to use is:
select functionname('ORCHESTRATE.COLUMNNAME') as RETURNCOLUMNNAME from dual
This would be done from a sparse lookup obviously.
Keith Williams
keith@peacefieldinc.com
keith@peacefieldinc.com
The sticking point is the bind variable in the select. That makes it only viable in a reference lookup if their "with arguments" requirement means it is being driven by and needs to be applied, row by row, to the input data. I'm trying to determine if that is actually what they need to do or if it is just literally syntax they "found" while searching the forums here, as stated earlier.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers