Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7986345
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T11:49:53+00:00 2026-06-04T11:49:53+00:00

When I run an XQuery query in PL-SQL using SELECT XQUERY(‘…’ RETURNING CONTENT) FROM

  • 0

When I run an XQuery query in PL-SQL using

 SELECT XQUERY('...' RETURNING CONTENT) FROM DUAL

the result is always returned concatenated in a single row single column holding a SQLXML field.

This is bad for queries returning sequences of elements and really nasty for queries returning sequences of text nodes.

Is there a way to avoid this concatenation and get a row per returned item?

Thanks,

Eric

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T11:49:54+00:00Added an answer on June 4, 2026 at 11:49 am

    To elaborate on jonearles’ answer, XMLTable is as generic as XQUERY, the difference being that XQUERY returns a single value while XMLTable is seen as full table.

    With XMLTable, you can do things such as:

    SQL> select * from XMLTABLE ('declare variable $v as xs:string external; $v, $v' PASSING 'Hello World' as "v") ;
    
    COLUMN_VALUE
    --------------------------------------------------------------------------------
    Hello World
    Hello World
    

    and also:

    SQL> select * from XMLTABLE ('declare variable $v as xs:string external; <e>{$v}</e>,<e>{$v}</e>' PASSING 'Hello World' as "v") ;
    
    COLUMN_VALUE
    --------------------------------------------------------------------------------   
    <e>Hello World</e>
    <e>Hello World</e>
    

    and that does exactly what I was looking for.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I run several queries from mysql command line on my linux box (Fedora Os).
I am getting an XP0006 error when trying to run an XQuery transformation (OSB's
run(/test.js) in mongo shell. i always get error run(/test.js) shell: started program /test.js sh2516|
I run a search using google.maps.places.PlacesService(map) and then I place markers on the map
I am currently using the ContentProvider for contacts to retrieve the contacts from the
Is there any existing way to run XQuery under python? (not starting to build
I have been messing with Oracle DB queries that run from my JAVA app.
I'm using a FilterQueryProvider to filter the content of a list view which is
I'm doing some asynchronous network I/O using Begin/End style methods. (It's actually a query
My goal is executing an XQuery using XPath. My XML file is: <?xml version=1.0

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.