Results 1 to 4 of 4

Thread: Oracle driving me bonkers [serious]

  1. #1

    Thread Starter
    Member chocoloco's Avatar
    Join Date
    Mar 2006
    Posts
    42

    Oracle driving me bonkers [serious]

    Does anyone know how do you write a User Defined Function in Oracle 9.2 that returns a table ?

  2. #2
    Fanatic Member
    Join Date
    May 2005
    Posts
    898

    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

  3. #3

    Thread Starter
    Member chocoloco's Avatar
    Join Date
    Mar 2006
    Posts
    42

    Re: Oracle driving me bonkers [serious]

    Quote 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.

  4. #4
    Fanatic Member
    Join Date
    May 2005
    Posts
    898

    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
  •  



Click Here to Expand Forum to Full Width