Quick Search:
Oracle PL/SQL Code Library
Find Or Post Oracle Jobs
Oracle Discussion & Chat
 mySQL: Get HTML/XML output from queries. Jump to:  
Category: >> mySQL >> Get HTML/XML output from queries. Bookmark and Share

<< lastnext >>

Snippet Name: Get HTML/XML output from queries.

Description: The output of this is code that can be cut-and-pasted into your HTML editor of choice. Complex queries not easily put into a single -e string can be done like this:

mysql -H < myqueries.sql

Note that no HTML is generated for any query that does not have a result set (like INSERT or UPDATE).

Change the -H to a -X to get XML output.

Comment: (none)

Language: MYSQL
Highlight Mode: MYSQL
Last Modified: March 01st, 2009

mysql -H -e "SELECT * FROM mytable WHERE somecondition='somevalue'"

Oracle Magazine
and Oracle White Papers

SQL University.net courses meet the most demanding needs of the business world for advanced education in a cost-effective manner. SQL University.net courses are available immediately for IT professionals and can be taken without disruption of your workplace schedule or processes.

Compared to traditional travel-based training, SQL University.net saves time and valuable corporate resources, allowing companies to do more with less. That's our mission, and that's what we deliver.

Click here to find out more
Home      :      Code Library      :      Sponsors      :      Privacy      :      Terms of Use      :      Contact Us 38 users online    © 2009 psoug.org

Forgot your password?