TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: SQL Formatter

26 pointsby picturalmost 2 years ago

4 comments

natpalmer1776almost 2 years ago
Maybe it's just me, but I find the sample input more legible than the output.
评论 #37215909 未加载
评论 #37220205 未加载
评论 #37216188 未加载
thesh4d0walmost 2 years ago
The example here is misformatted:<p><pre><code> frozen_rand BETWEEN % (rand_low) s AND % (rand_high) s </code></pre> Should all be on one line, those aren&#x27;t two different conditions.
评论 #37218717 未加载
评论 #37262694 未加载
snthpyalmost 2 years ago
Thanks. This will be useful for quick queries without an install.<p>Otherwise there is also SQLFluff: <a href="https:&#x2F;&#x2F;sqlfluff.com&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;sqlfluff.com&#x2F;</a>
croesalmost 2 years ago
I think everyone one has his own preference on formatting so the ability to customize such formatters would be the best feature.