I have declared a record and a table of that record.
TYPE rec IS RECORD ( proj AV_ACTIVITY.proj%TYPE,
act AV_ACTIVITY.act%TYPE );
TYPE object_table_type is TABLE OF rec INDEX BY BINARY_INTEGER;
temp_ass_rn object_table_type;
Is there any method available in which we can delete all the data in the "object_table_type" like we have COUNT for Counting the records ?
Example for count is given below.
for c1_rec in ( select distinct PROJECT_NAME , ACTIVITY_NAME
from adm.dup_memo_project
where act_res_status = 'ASSIGNED'
order by project_name , activity_name
)
loop
v_cnt_temp_ass_rn := 1 + temp_ass_rn.count;
temp_ass_rn(v_cnt_temp_ass_rn).proj := c1_rec.project_name;
temp_ass_rn(v_cnt_temp_ass_rn).act := c1_rec.activity_name;
end loop;
dbms_output.put_line(temp_ass_rn.count);
i want to delete all data in this "temp_ass_rn" before i do this assignment
temp_ass_rn(v_cnt_temp_ass_rn).proj := c1_rec.project_name;
temp_ass_rn(v_cnt_temp_ass_rn).act := c1_rec.activity_name;
[Updated on: Wed, 02 July 2008 05:21]
Report message to a moderator