Hongmu Notes

🗄️ SQL formatting

Beautify or compress SQL statements with one click and replace content in place.

SQL formatting

Instructions for use

  • Paste SQL into the input box and click "Format SQL" or "Compress SQL"
  • The result will be written back to the input box on the spot. It is recommended to make a backup copy of the original text first.
  • Formatting only adjusts whitespace and line breaks, but does not change the statement itself.

Mobile browser formatting SQL

When you receive a piece of SQL on your mobile phone and want to quickly see the structure, beautifying it in place is much easier than swiping horizontally to find conditions.

📌 How to use it on mobile phone

Press and hold to copy the SQL and paste it into the input box, then click "Format SQL"; the result is written back to the input box on the spot, taken out with the copy button and sent back to the work group.

🧭 Common uses

The SQL copied from the log or monitoring is often a whole line. Formatting it first and then reading it can quickly see the table name and conditions; compressing the SQL into one line before pasting it into code, work orders or configurations can avoid unnecessary line breaks that affect typesetting. When doing code review and troubleshooting, I often switch back and forth between the two forms.

🔒 Dealing with location and privacy

Formatting and compression are completed locally in the browser. There is no Internet access, no uploading, and no writing to local storage. It will be cleared after refreshing. SQL often contains table names and field names. Please save the results according to internal specifications, and it is recommended to paste only necessary statement fragments for processing.

All keywords and tutorials 12

❓ FAQ

How long can the phone handle?
Statements of several hundred lines are no problem; longer ones are recommended to be processed on a computer.
Can you see it clearly on a small screen?
After formatting, each line is shorter, and the small screen reading experience is obviously better than a single line of long sentences.