Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
How To Return Query Output in XML Format
How To Return Query Output in XML Format? - MySQL FAQs - Command-Line End User Interface mysql
✍: FYIcenter.com
By default, "mysql" returns query output in text table format. If you want to receive query output in XML format, you need to use the "-X" command option. Here is a good tutorial exercise:
>cd \mysql\bin >mysql -u root -X test mysql> SELECT * FROM links; <?xml version="1.0"?> <resultset statement="SELECT * FROM links"> <row> <field name="id">1</field> <field name="name">dba.fyicenter.com</field> </row> <row> <field name="id">10</field> <field name="name">dba.fyicenter.com</field> </row> </resultset> 2 rows in set (0.00 sec)
2007-05-10, 4639👍, 0💬
Popular Posts:
What are the core functionalities in XML .NET framework? Can you explain in detail those functionali...
How do I install JUnit? First I will download the lastest version of JUnit. Then I will extract all ...
What Information Is Needed to Connect SQL*Plus an Oracle Server? - Oracle DBA FAQ - Introduction to ...
How can you write a loop indefinitely? Two examples are listed in the following code: for(;;) { ... ...
How To Create an Add-to-Netvibes Button on Your Website? - RSS FAQs - Adding Your Feeds to RSS News ...