This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes The XMLQuery syntax problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "The XMLQuery syntax problem" Watch "The XMLQuery syntax problem" New topic
Author

The XMLQuery syntax problem

Sindhu Kodoor
Ranch Hand

Joined: Sep 03, 2010
Posts: 65
Hi,

I have a DB2 table , say for example the table name "Customer" , it has a column XML_DATA that has the entire xml loaded into each row, I need to write a select XMLQUERY, to extract all the customers with customer Id="ALL", for that
the query I wrote is :



But instead of filtering by customerId=ALL, it is returning all the records in Customer table, please kindly help me out.

Thanks,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: The XMLQuery syntax problem
 
Similar Threads
Problem with SYS_CONNECT_BY_PATH
Composite Key Mapping with OneToMany does not work
Native Queries
Linking two tables in JDBC
[Newb] How to reuse attributes