I'm trying to use multiple cursor loops to do some stuff. I don't really know SQL or Oracle, I'm going blindly here. Anyway, here is the code:
The problem is that the database refuses to accept the Task_Id in the second row as an argument by passing an error like:
Wrong type or number of arguments in call to c3, though they are the same type and number. can anyone help me ? I'm thinking of using temporary tables to implement if this can't work... Any help ?
Code:
FOR Task_Id IN c1(job_id) LOOP
FOR PreconId IN c3(Task_Id) LOOP
FOR task_order_id2 IN c5(Task_Id,job_id,job_order_id) LOOP
FOR task_order_id1 IN c4(PreconId,job_id,job_order_id) LOOP
INSERT INTO TASK_ORDER_CONSTRAINTS
(TASKORDER1 , TASKORDER2)
VALUES (task_order_id1 , task_order_id2);
END LOOP;
END LOOP;
END LOOP;
END LOOP;
The problem is that the database refuses to accept the Task_Id in the second row as an argument by passing an error like:
Wrong type or number of arguments in call to c3, though they are the same type and number. can anyone help me ? I'm thinking of using temporary tables to implement if this can't work... Any help ?