Perl Monk, Perl Meditation | |
PerlMonks |
Working with Oracle Raw fieldsby xorl (Deacon) |
on Sep 04, 2008 at 16:17 UTC ( [id://709055]=perlquestion: print w/replies, xml ) | Need Help?? |
xorl has asked for the wisdom of the Perl Monks concerning the following question:
Hi fellow monks,
Here's my problem. I have an oracle database several of the tables have a "raw" field. When I use perl to manipulate these fields, I don't get the expected results. What I'm trying to do is select all the ID's (a raw field) from one table and loop through these values. A 2nd query is run on another table looking for the same ID value. If more than one row is found, then an UPDATE has to be done to the first table to set a text field equal to a text string. One field in the 2nd table also has a count so in my code if that value > 0 then I do the update. The text string is basically a concatenation of another field in the 2nd table across all the rows that match the ID. I would love to come up with a better way of doing this. But I'll just be happy if I can figure out how to work with these raw fields. Thanks in advance Here's the code I've attempted:
Back to
Seekers of Perl Wisdom
|
|