MySQL Forums
Forum List  »  Connector/Node.js

Re: export mutiple tables data into a single xml
Posted by: Harald Groven
Date: July 09, 2009 01:39PM

Simple example of how to do this without use of scripting language (like PHP/ASP)

SELECT CONCAT(
'<employees>\n',
'<emplayeName>', P.name, '</emplayeName>',
'<companyName>', C.companyName, '</companyName>',
'\n</employees>'
) AS xmldata
FROM persons P, company C
WHERE P.company_id = C.id
;

Options: ReplyQuote


Subject
Written By
Posted
Re: export mutiple tables data into a single xml
July 09, 2009 01:39PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.