Ver Mensaje Individual
  #2 (permalink)  
Antiguo 07/07/2011, 11:02
Avatar de huesos52
huesos52
Colaborador
 
Fecha de Ingreso: febrero-2009
Ubicación: Manizales - Colombia
Mensajes: 5.980
Antigüedad: 15 años, 2 meses
Puntos: 360
Respuesta: Cursors con insert

Cual es el error?
debes ponerle cuando salir del cursor.

Código SQL:
Ver original
  1. LOOP
  2. FETCH cursX INTO or_nbr,symb,or_action,shar, price, st, event_tim, tra_id, market;    
  3. EXIT WHEN NOT FOUND;
  4. INSERT INTO Layers(order_nbr,symbol,orden_action, shares,order_price,state ,event_time, trader_id, market_id)
  5.         VALUES (or_nbr,symb,or_action,shar, price, st, event_tim, tra_id, market) ;
  6. END LOOP;
  7.  CLOSE cursX;
__________________
Without data, You are another person with an opinion.
W. Edwads Deming