dbTalk Databases Forums  

Ref cursor question

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Ref cursor question in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mtek
 
Posts: n/a

Default Ref cursor question - 09-12-2008 , 02:28 PM







Hi,

I'm new to ref cursors. Please look at this:

TYPE select_cursor IS REF CURSOR;
v_data_crs SELECT_CURSOR;
v_data_rec DATA_CRS%ROWTYPE;

What is wrong here? I'm going to open up a number of possible
cursors based on some parameters. So, I thought you define the
cursor, then define a type of that ref cursor, then you can define a a
row of that......

Probably pretty simple what I ask.......but help is appreciated.


Reply With Quote
  #2  
Old   
sybrandb@hccnet.nl
 
Posts: n/a

Default Re: Ref cursor question - 09-12-2008 , 02:56 PM






On Fri, 12 Sep 2008 12:28:01 -0700 (PDT), Mtek <mtek (AT) mtekusa (DOT) com>
wrote:

Quote:
Hi,

I'm new to ref cursors. Please look at this:

TYPE select_cursor IS REF CURSOR;
v_data_crs SELECT_CURSOR;
v_data_rec DATA_CRS%ROWTYPE;

What is wrong here? I'm going to open up a number of possible
cursors based on some parameters. So, I thought you define the
cursor, then define a type of that ref cursor, then you can define a a
row of that......

Probably pretty simple what I ask.......but help is appreciated.
You have strongly typed cursors and weakly typed cursors.
REF CURSORs are weakly typed.
It doesn't make sense to define a record based on a weakly typed
cursor.


--
Sybrand Bakker
Senior Oracle DBA


Reply With Quote
  #3  
Old   
sybrandb@hccnet.nl
 
Posts: n/a

Default Re: Ref cursor question - 09-12-2008 , 02:56 PM



On Fri, 12 Sep 2008 12:28:01 -0700 (PDT), Mtek <mtek (AT) mtekusa (DOT) com>
wrote:

Quote:
Hi,

I'm new to ref cursors. Please look at this:

TYPE select_cursor IS REF CURSOR;
v_data_crs SELECT_CURSOR;
v_data_rec DATA_CRS%ROWTYPE;

What is wrong here? I'm going to open up a number of possible
cursors based on some parameters. So, I thought you define the
cursor, then define a type of that ref cursor, then you can define a a
row of that......

Probably pretty simple what I ask.......but help is appreciated.
You have strongly typed cursors and weakly typed cursors.
REF CURSORs are weakly typed.
It doesn't make sense to define a record based on a weakly typed
cursor.


--
Sybrand Bakker
Senior Oracle DBA


Reply With Quote
  #4  
Old   
sybrandb@hccnet.nl
 
Posts: n/a

Default Re: Ref cursor question - 09-12-2008 , 02:56 PM



On Fri, 12 Sep 2008 12:28:01 -0700 (PDT), Mtek <mtek (AT) mtekusa (DOT) com>
wrote:

Quote:
Hi,

I'm new to ref cursors. Please look at this:

TYPE select_cursor IS REF CURSOR;
v_data_crs SELECT_CURSOR;
v_data_rec DATA_CRS%ROWTYPE;

What is wrong here? I'm going to open up a number of possible
cursors based on some parameters. So, I thought you define the
cursor, then define a type of that ref cursor, then you can define a a
row of that......

Probably pretty simple what I ask.......but help is appreciated.
You have strongly typed cursors and weakly typed cursors.
REF CURSORs are weakly typed.
It doesn't make sense to define a record based on a weakly typed
cursor.


--
Sybrand Bakker
Senior Oracle DBA


Reply With Quote
  #5  
Old   
sybrandb@hccnet.nl
 
Posts: n/a

Default Re: Ref cursor question - 09-12-2008 , 02:56 PM



On Fri, 12 Sep 2008 12:28:01 -0700 (PDT), Mtek <mtek (AT) mtekusa (DOT) com>
wrote:

Quote:
Hi,

I'm new to ref cursors. Please look at this:

TYPE select_cursor IS REF CURSOR;
v_data_crs SELECT_CURSOR;
v_data_rec DATA_CRS%ROWTYPE;

What is wrong here? I'm going to open up a number of possible
cursors based on some parameters. So, I thought you define the
cursor, then define a type of that ref cursor, then you can define a a
row of that......

Probably pretty simple what I ask.......but help is appreciated.
You have strongly typed cursors and weakly typed cursors.
REF CURSORs are weakly typed.
It doesn't make sense to define a record based on a weakly typed
cursor.


--
Sybrand Bakker
Senior Oracle DBA


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.