Home » RDBMS Server » Server Administration » HELP cursor
HELP cursor [message #369758] Thu, 05 October 2000 09:37 Go to next message
Martin Johansson
Messages: 11
Registered: October 2000
Junior Member
Hi..

Is it possible to do a select on a cursor.
Example:

nr_1 VARCHAR2(3);
CURSOR curs IS
SELECT anst,nr FROM mytable;

FOR i in curs LOOP
nr_1 := SELECT SUBSTR(i.nr,1,3) FROM curs <= ???
...
...
END LOOP;

Any help would be heplful

/Martin
Re: HELP cursor [message #369759 is a reply to message #369758] Thu, 05 October 2000 09:39 Go to previous message
Highlander
Messages: 5
Registered: October 2000
Junior Member
nr_1 VARCHAR2(3);
CURSOR curs IS
SELECT anst,nr FROM mytable;

FOR i in curs LOOP
nr_1 := SUBSTR(i.nr,1,3)
...
...
END LOOP;
Previous Topic: using package dbms_standard
Next Topic: What is B-Tree and Bitmap index?
Goto Forum:
  


Current Time: Thu Apr 25 08:34:34 CDT 2024