dbTalk Databases Forums  

cursor syntax question

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


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



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

Default cursor syntax question - 10-01-2009 , 08:42 AM






I've looked in Oracle PL/SQL 3rd Edition and searched psoug.org but I
was unable to determine:
CURSOR foo (vbar varchar2) IS
select *
from table_t t
where t.bar = vbar;

I get that vBar is a varchar2, but what does it mean exactly? If you
could send me a pointer to any documentation this would be greatly
appreciated. This code was found in Oracle 10.2

Best,
Alex

~~~~
http://www.lifesabirch.org

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

Default Re: cursor syntax question - 10-01-2009 , 09:19 AM






On Thu, 1 Oct 2009 06:42:29 -0700 (PDT), kes <abirch (AT) gmail (DOT) com> wrote:

Quote:
I've looked in Oracle PL/SQL 3rd Edition and searched psoug.org but I
was unable to determine:
CURSOR foo (vbar varchar2) IS
select *
from table_t t
where t.bar = vbar;

I get that vBar is a varchar2, but what does it mean exactly? If you
could send me a pointer to any documentation this would be greatly
appreciated. This code was found in Oracle 10.2

Best,
Alex

~~~~
http://www.lifesabirch.org

http://www.psoug.org/reference/datatypes.html

--
--
Sybrand Bakker
Senior Oracle DBA

Reply With Quote
  #3  
Old   
Mark D Powell
 
Posts: n/a

Default Re: cursor syntax question - 10-01-2009 , 09:25 AM



On Oct 1, 9:42*am, kes <abi... (AT) gmail (DOT) com> wrote:
Quote:
I've looked in Oracle PL/SQL 3rd Edition and searched psoug.org but I
was unable to determine:
CURSOR foo (vbar varchar2) IS
select *
from table_t t
where t.bar = vbar;

I get that vBar is a varchar2, but what does it mean exactly? If you
could send me a pointer to any documentation this would be greatly
appreciated. This code was found in Oracle 10.2

Best,
Alex

~~~~http://www.lifesabirch.org
Alex, while Sybrand gave you a link to data type information posted
the same site you were found your cursor reference on I though you
might want to also reference the online official Oracle
documentation. Here is the site url: http://tahiti.oracle.com

You can find cursors in the PL/SQL manual and data types are defined
in both the Concepts and Application Developers Guide - Fundamentals
manuals.

HTH -- Mark D Powell --

Reply With Quote
  #4  
Old   
Alex Birch
 
Posts: n/a

Default Re: cursor syntax question - 10-01-2009 , 09:37 AM



Quote:
~~~~
http://www.lifesabirch.org

http://www.psoug.org/reference/datatypes.html

--
--
Sybrand Bakker
Senior Oracle DBA
D'oh the keyword that I was looking for was parameterized cursor (I
came up with this phrase when replying back). Google solved this one
for me. Oddly enough this isn't covered at psoug.org (er at least the
search doesn't return anything).

Thanks for your time,
Alex

Reply With Quote
  #5  
Old   
Robert Klemme
 
Posts: n/a

Default Re: cursor syntax question - 10-01-2009 , 11:35 AM



On 10/01/2009 04:25 PM, Mark D Powell wrote:
Quote:
On Oct 1, 9:42 am, kes <abi... (AT) gmail (DOT) com> wrote:
I've looked in Oracle PL/SQL 3rd Edition and searched psoug.org but I
was unable to determine:
CURSOR foo (vbar varchar2) IS
select *
from table_t t
where t.bar = vbar;

I get that vBar is a varchar2, but what does it mean exactly? If you
could send me a pointer to any documentation this would be greatly
appreciated. This code was found in Oracle 10.2

Alex, while Sybrand gave you a link to data type information posted
the same site you were found your cursor reference on I though you
might want to also reference the online official Oracle
documentation. Here is the site url: http://tahiti.oracle.com

You can find cursors in the PL/SQL manual and data types are defined
in both the Concepts and Application Developers Guide - Fundamentals
manuals.
I'd like to add that often no explicit cursor declaration is necessary, e.g.

http://download.oracle.com/docs/cd/B...htm#sthref1360

Kind regards

robert

--
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/

Reply With Quote
  #6  
Old   
joel garry
 
Posts: n/a

Default Re: cursor syntax question - 10-01-2009 , 12:18 PM



On Oct 1, 7:37*am, Alex Birch <abi... (AT) gmail (DOT) com> wrote:
Quote:
~~~~
http://www.lifesabirch.org

http://www.psoug.org/reference/datatypes.html

--
--
Sybrand Bakker
Senior Oracle DBA

D'oh the keyword that I was looking for was parameterized cursor (I
came up with this phrase when replying back). Google solved this one
for me. Oddly enough this isn't covered at psoug.org (er at least the
search doesn't return anything).

Thanks for your time,
Alex
The more updated link is http://www.morganslibrary.com/

There is a contact link on there if you have constructive suggestions.

jg
--
@home.com is bogus.
http://torrentfreak.com/retailer-mus...victim-090914/

Reply With Quote
  #7  
Old   
Shakespeare
 
Posts: n/a

Default Re: cursor syntax question - 10-02-2009 , 11:20 AM



Robert Klemme schreef:
Quote:
On 10/01/2009 04:25 PM, Mark D Powell wrote:
On Oct 1, 9:42 am, kes <abi... (AT) gmail (DOT) com> wrote:
I've looked in Oracle PL/SQL 3rd Edition and searched psoug.org but I
was unable to determine:
CURSOR foo (vbar varchar2) IS
select *
from table_t t
where t.bar = vbar;

I get that vBar is a varchar2, but what does it mean exactly? If you
could send me a pointer to any documentation this would be greatly
appreciated. This code was found in Oracle 10.2

Alex, while Sybrand gave you a link to data type information posted
the same site you were found your cursor reference on I though you
might want to also reference the online official Oracle
documentation. Here is the site url: http://tahiti.oracle.com

You can find cursors in the PL/SQL manual and data types are defined
in both the Concepts and Application Developers Guide - Fundamentals
manuals.

I'd like to add that often no explicit cursor declaration is necessary,
e.g.

http://download.oracle.com/docs/cd/B...htm#sthref1360


Kind regards

robert

That's in cursor-for loops only. And according to some aces cursor-for
loops are never necessary as well.

Shakespeare

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.