Skip to content

cavo789/sql_formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SQL Formatter

php 8.2

Banner

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