Solved

Free Oracle SQL to HTML Beautifier?

Posted on 2011-03-04
2
472 Views
Last Modified: 2012-05-11
So I'm looking for some source code or something I can implement in php to take in a string of SQL and return a string with HTML tags so it'll appear nicely on a webpage.  Does anyone know of anything like this?

Currently I'm using: http://code.google.com/p/php-sqlformat/
but it's for mysql, not oracle.  I'd like something more oracle specific.  It does the job for most queries, but it has some weird indenting rules.
0
Comment
Question by:Doug Walton
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 9

Accepted Solution

by:
Philippe Damerval earned 250 total points
ID: 35062335
It sounds like php-mysqlformat does more of a beautifying job than an actual html formatting job.
In order to stop the browser from interpreting any of your html markup as tags, place the code inside a
<CODE></CODE> tag. If you'd like to beautify your PL/SQL beforehand, use either the tools supplied with Oracle (I don't know which version you have) or a tool like this one:
http://psti.equinoxbase.com/

HTH

Philippe
0
 
LVL 4

Author Closing Comment

by:Doug Walton
ID: 35097675
Thanks, I didn't see that one when I was searching.  It's pretty nice, but I was looking for something I could implement on my site.  

For example, my program grabs the queries from a database and then displays which ones run most often.  Most of the time their pretty long queries and hard to read, so something that I could implement in my program (like a library or something) to format the sql query automatically would be awesome.
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question