Hi,
Wondering if any of you guys could help me with writing a SQL Formatter.
The main problem I'm having is not so much the code but the thought process behind it.
I'm stuck on how and where to even begin.
The first thing I want to try is to work with is a best case scenario
So for example someone inputs a line of SQL
SELECT FIELD1, FIELD2, FIELD3 FROM TABLE1
Which in turn in formatted as
SELECT.FIELD1,
...........FIELD2,
...........FIELD3
FROM...TABLE1
(dots are to display formatting and not part of the actual output)
Any help you could give me would be appreciated.
This will work via a form with a button and a textbox (for now)
Thanks