Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing record metadata
Message
From
12/04/2002 08:10:00
Christian Cote
Les Logiciels Onoma Inc.
Longueuil, Quebec, Canada
 
 
To
12/04/2002 05:43:07
General information
Forum:
Oracle
Category:
PL/SQL
Miscellaneous
Thread ID:
00643441
Message ID:
00644172
Views:
14
HI Tim,
Thank you for your help. Yes that is what I mean. I need to grab the name of the column (I know I can have it in ALL_TAB_COLUMNS) and its value. My problem is that I need to normalize a denormalized table. The column of the denormalized table has the products attributes (qty, price) in the name of the column (MyProd1_Price, MyProd1_Qty). I need to evaluate the name of the product (name of te column) and the values of qty and price and insert them into a normalized table.

The only way I could do it for the moment is to hardcode all 22 products names and attribute and do 22 inserts by row fetched by the main cursor. If I was using something like ADO, I would be able to write MyRec(1).name (would give me the name of the product) and MyRec(1).Value for the qty and MyRec(2).Value for the price. And so on ofr the 22 products. I would know that the product have changed when MyRec(n).name change.

Is it possible to replicate the same mechanic in PL/SQL?

Thank you,
Christian
Previous
Reply
Map
View

Click here to load this message in the networking platform