Hello -
I am trying to get some data into a relational form and I have run into a little problem. I have a table in the database with columns foo_1, bar_1, foobar_1, foo_2, bar_2, foobar_2 etc.. all the way out to 150. In PL/SQL, I would like to do something like:
for i in 1..150 loop
if my_cursor.foo_(i) is not null then
--put foo, bar, and foobar into a relational table
end if;
end loop;
is it possible to dynamically come up with column names like this?
-Greg :-Q
I am trying to get some data into a relational form and I have run into a little problem. I have a table in the database with columns foo_1, bar_1, foobar_1, foo_2, bar_2, foobar_2 etc.. all the way out to 150. In PL/SQL, I would like to do something like:
for i in 1..150 loop
if my_cursor.foo_(i) is not null then
--put foo, bar, and foobar into a relational table
end if;
end loop;
is it possible to dynamically come up with column names like this?
-Greg :-Q