|
-
Jun 6th, 2006, 09:00 AM
#1
Thread Starter
Member
Oracle driving me bonkers [serious]
Does anyone know how do you write a User Defined Function in Oracle 9.2 that returns a table ?
-
Jun 6th, 2006, 09:01 AM
#2
Fanatic Member
Re: Oracle driving me bonkers [serious]
Isn't that a stored procedure?
"so just keep in mind that fantasy is not the same as realtiy and make sure u remember that wii sports may be fun but u cant count on it as exercise ok cool bye" - HungarianHuman
-
Jun 6th, 2006, 09:10 AM
#3
Thread Starter
Member
Re: Oracle driving me bonkers [serious]
 Originally Posted by grilkip
Isn't that a stored procedure?
No its not. A user defined function can be references inside a sql statement, a Sproc cannot be referenced like that.
For Example ...
Select * From dbo.udf_GetEmployees(@Section)
is a valid Sql statement where dbo.udf_GetEmployees is a Sql server user defined function and @Section is the parameter to that function. If this was a Sproc, you could not use it like that.
I am very good at Sql Server, just have to work on Oracle thesedays and struggling to find the similar functionality in oracle. I know you can create UDFs in Oracle 9.2, just do not know the syntax and there is very poor documentation (whatever available) on the internet.
-
Jun 6th, 2006, 09:14 AM
#4
Fanatic Member
Re: Oracle driving me bonkers [serious]
I've worked with PL/SQL in Oracle but only with triggers. I will see if I can dig anything up on functions.
"so just keep in mind that fantasy is not the same as realtiy and make sure u remember that wii sports may be fun but u cant count on it as exercise ok cool bye" - HungarianHuman
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|