To be clear, I don't require XML, I really don't care what format the data is in as I can easily deal with that after the query, I just need the subquery to return more than one row as is possible in sql server using the FOR XML syntax.
This is not a showstopper for me as normally the columns wouldn't be multi row and if they were, returning the first one would be acceptable, but it would be a nice to have.
I gather your answer can be summarised as "You can't do it" which was my assessment!"
Main Topics
Browse All Topics





by: virmaiorPosted on 2008-07-31 at 06:29:27ID: 22129444
(1) MySQL has rather limited XML support (http://dev.mysql.com/doc/ refman/5.1 /en/xml-fu nctions.ht ml). It seems like you have to manually create the XML yourself...
(2) The subquery returning more than one row means that your data is not normalized or that a subquery for a value is really not the appropriate way to organize your data.