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

Home -> Community -> Usenet -> c.d.o.server -> Re: How to write a SELECT stored procedure ?

Re: How to write a SELECT stored procedure ?

From: Paul Nguyen <pnguyen_at_netexplorer.com>
Date: Mon, 02 Aug 1999 10:23:14 -0500
Message-ID: <37A5B7E1.A645A8E6@netexplorer.com>


Hi,

Use cursor.
create or replace procedure GetNames()
begin
open mycursor as
select name from tbemployee;
end ;

hari_somaskanthan_at_my-deja.com wrote:

> Hi,
>
> I am using VB 6.0 to call a stored procedure in Oracle 8x. The
> following stored procedure is written in SQLServer. How do I convert it
> into Oracle stored procedure.
>
> Procedure GetNames ()
> BEGIN
> SELECT NAME FROM TBLEMPLOYEE
> END
>
> This procedure returns a recordset and from my VB program I use client
> side cursor to retrieve all the records one by one.
>
> Thanks
> Hari Somaskanthan
> Hari_S1_at_Yahoo.com
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.
Received on Mon Aug 02 1999 - 10:23:14 CDT

Original text of this message

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