How to do conditional processing in a bulk collect loop?
问题 we have Oracle 11G and i'm trying to move data from one table to another using bulk collect . Problem is when I tried to evaluate if one field from origin is empty my package got invalidated. What I have: Declaration: CREATE OR REPLACE PACKAGE MYSCHEMA.MYPKG AS CURSOR CUR_MYDATA IS SELECT o.name, o.last_name, o.id, o.socnum FROM origin o WHERE 1=1 AND o.name like upper ('a%'); TYPE t_name IS TABLE OF origin.name%TYPE; TYPE t_lastname IS TABLE OF origin.last_name%TYPE; TYPE t_id IS TABLE OF