Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.tools -> Help: Package Cursor Problem: Invalid Column?
I have a cursor defined in my package body that is giving me trouble. I'm running Oracle 7.3.4 on an HP box.
I have a procedure in a Package with a cursor that has a join. The code compiles fine, and I can run the SQL in SQLPLUS, but when I run it I get:
ORA-00904: invalid column name, at the following locations (see => below).
I've tried having the cursor outside the procedure and declaring my own TYPE with no luck. Any help would be greatly appreciated! The procedure is below.
-Tom
PROCEDURE sp_logic_test IS
CURSOR logic_test_cur IS
=> SELECT t.acct, t.prf, p.r_scr, p.intro_prf
FROM myr_t t , p_stat p WHERE t.r_scr= p.r_scr FOR UPDATE OF myr_t;
BEGIN
=> FOR rtd_cur IN logic_test_cur
LOOP UPDATE myr_t SET prf = rtd_cur.intro_prf; END LOOP; COMMIT;
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Mon Jul 10 2000 - 00:00:00 CDT