Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: PL/SQL Questions

Re: PL/SQL Questions

From: Thomas Bierhance <Bierhance_at_orbital-computer.de>
Date: 1999/08/03
Message-ID: <37A61DC2.3E372280@orbital-computer.de>#1/1

> 1. For my application end (both VB and Java), besides returning
> resultsets (from table) using cursors, how could I possibly return
> values that I defined personally e.g.
> returning 'doc', c2 records rather than selecting specifically from
> columns c1 , c2 from table.

don't know...

> 2. Just to check whether my way of coding PL/SQL statements is correct?
>
> My question is whether it is efficient or needed to define the cursor
> twice, once in the package header and another time in the function
> itself.

no

> Also is using function this way better or using a procedure with IN OUT
> settings

it depends, I've been working at VB project as a pl/sql-developer finding me wrapping functions with procedures as the VB developers couldn't access the functions... it's a bad solution though. I think when something primarily returns a value it should be a function, when something primarily "does something" it should be a procedure.

Help, that helped a bit

Thomas Received on Tue Aug 03 1999 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US