Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extracting XML data

Status
Not open for further replies.

Latonya

Programmer
Jun 22, 2003
2
0
0
US
Does anyone know the proper syntax for extracting XML data using Impromtu?

I can do the following:

select distinct extract(xml, 'path/text()').getStringVal() from TABLE_NAME

When I add a column of a different type to the same SQL, I receive a -239 error. Example:

select distinct Date, extract(xml, 'path/text()').getStringVal() from TABLE_NAME
where Date between to_date('2001-01-01) and to_date(2002-01-01)

Latonya
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top