On Tue, 17 Jul 2001, Abigail wrote:

> Every database server has its own SQL dialect so it's hard to make it
> generic. I know Sybase and its documentation fairly well, and I would
> say it isn't rocket science to parse it with Parse::RecDescent. But
> it's going to be quite a lot of work, most of it pretty boring, because
> the language isn't that small. 

Well, the hope was that SQLs had enough similarity to make a cheesey go 
at getting scripts to line up the same.  Not a complete semantic/syntatic 
(whichever I want) realignment, just some indenting and:
select biz, baz,
boom
...
into:
select
    biz,
    baz,
    boom
...

> I disagree that SQL is "ugly" though. I find that SQL can be formatted
> much prettier than Perl or C.

I did not mean SQL is ugly, just the format this person chose was, to me, 
inelegant and wasteful.  Esp. that one field, one table per line part.  
To each their own, though.  Personally, I quite like SQL and believe it 
is quite easily formatted on entry.

a

Andy Bach, Sys. Mangler             
Internet: [EMAIL PROTECTED]    VOICE: (608) 264-5178 ex 5738, FAX 264-510

            So, the Buddha walks into a pizza parlor and says,
                  "Make me one with everything."

Reply via email to