SQL formatter? - Mailing list pgsql-sql

From Andrew Perrin
Subject SQL formatter?
Date
Msg-id Pine.LNX.4.21.0209251342580.11079-100000@perrin.socsci.unc.edu
Whole thread Raw
Responses Re: SQL formatter?
List pgsql-sql
Does anyone know of a routine for formatting SQL statements in a
structured way? Standalone or for emacs would be fine.  I'm thinking of
something that could take a long SQL text statement and format it, e.g.:

select foo from bar where baz and bop and not boo;

becomes

SELECT     foo
FROM       bar
WHERE      baz  AND     bop  AND NOT boo
;

Thanks,
Andy

----------------------------------------------------------------------
Andrew J Perrin - http://www.unc.edu/~aperrin
Assistant Professor of Sociology, U of North Carolina, Chapel Hill
clists@perrin.socsci.unc.edu * andrew_perrin (at) unc.edu




pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: Getting current transaction id
Next
From: "Michael Paesold"
Date:
Subject: Re: Getting current transaction id