PL/SQL (MOSC)

MOSC Banner

pl/sql code hanging

edited Feb 5, 2016 8:44AM in PL/SQL (MOSC) 2 commentsAnswered ✓

Hi,

Not sure if I wrote something wrong in this code - this is hanging

  1  declare

  2      id1 t4.id%TYPE;

  3      name1 t4.name%TYPE;

  4  c1 sys_refcursor;

  5  begin

  6     open  c1 for select t4.id,name from t4,t where t4.id=t.id;

  7      loop

  8      fetch c1 into id1,name1;

  9  dbms_output.put_line(name1||'and'||id1);

10      end loop;

11*   end;

SQL> /

SQL> select count(*) from t4,t where t4.id=t.id;

  COUNT(*)

----------

       260

Best regards,

Vishal

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center