Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.
/ sql_formatter Public archive

Very straight-forward script for formatting SQL statement.

License

Notifications You must be signed in to change notification settings

cavo789/sql_formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SQL Formatter

Very straight-forward script for formatting SQL statement.

Format string like, f.i.,

SELECT LAT_N, CITY, TEMP_F FROM STATS, STATION WHERE MONTH = 7 AND STATS.ID = STATION.ID ORDER BY TEMP_F

into

SELECT
    LAT_N,
    CITY,
    TEMP_F
FROM
    STATS,
    STATION
WHERE
    MONTH = 7
    AND STATS.ID = STATION.ID
ORDER BY
    TEMP_F

How to use

Just copy/paste your SQL statement into the text box as illustrated here below and click on the Format button.

sql_formatter

Source

The SqlFormatter has been written by Jeremy Dorn and available on GitHub: https://github.com/jdorn/sql-formatter.

About

Very straight-forward script for formatting SQL statement.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages