Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ExtractValue node element using a variable

PhilMan2Aug 28 2010 — edited Aug 29 2010
Hello,

I have the following select statement and it works fine.
SELECT extractvalue(ISBN_PAYLOAD, '/ISBNdb/BookList/BookData/Subjects/Subject[1into Subject1
FROM LIB_ISBN_T
WHERE LIB_ISBN_T_PK = 1;

It returns the first subject.

I'd like to loopy through all the subjects, replacing the "1" by a numeric variable. I tried the following, and I get blanks.

SELECT extractvalue(ISBN_PAYLOAD, '/ISBNdb/BookList/BookData/Subjects/Subject[(Current_Count)into Subject1
FROM LIB_ISBN_T
WHERE LIB_ISBN_T_PK = 1;

In a Select / Extractvalue statement, how can I replace the value inside of the square brackets with a variable?

Many Thanks
This post has been answered by odie_63 on Aug 28 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 26 2010
Added on Aug 28 2010
4 comments
1,811 views