I have a table and there is a column and I get this column values like this with my code:
100
533
523
634
552
.
.
.
There are many rows like this and then I want make that like one row (100,533,634,552,.,.,.,.) add all of them to v_products or to an array. How can I do this?
Here is my code:
v_products varchar2(4000);
for c in (select distinct ugb.product_code
into v_products
from uat.product_grup ug,uat.product_grup_con ugb
where ug.product_grup_code like '%PRODUCT' )
loop
v_products := c.product_code;
dbms_output.put_line(v_products);
end loop;