ข้ามไปยังเนื้อหาหลัก

เครื่องจัดรูปแบบ SQL

เครื่องมือสำหรับนักพัฒนา

คำสำคัญตัวพิมพ์ใหญ่ การเยื้อง การย่อขนาด

ดูคำตอบอย่างรวดเร็ว

SQL Formatter: Uppercase keywords, indent, minify. SQL Formatter uses standard developer formulas to compute accurate results instantly.

ป้อน SQL

ผลลัพธ์

SELECT
    u.id,
    u.name,
    COUNT(o.id) AS orders,
    SUM(o.amount) AS total
FROM users u
LEFT
JOIN orders o
  ON u.id = o.user_id
WHERE u.status = 1
  AND o.created_at > '2024-01-01'
  OR o.amount > 1000
GROUP BY u.id, u.name
HAVING COUNT(o.id) > 3
ORDER BY total DESC
LIMIT 20;
285 อักขระ · 16 แถว
นี่คือการจัดรูปแบบคีย์เวิร์ดที่เบา: แปลงคีย์เวิร์ด SQL ประมาณ 40 คำเป็นตัวพิมพ์ใหญ่ และขึ้นบรรทัดใหม่พร้อมเยื้องตามประโยคหลัก (SELECT/FROM/WHERE/GROUP BY/ORDER BY/LIMIT/JOIN/ON/AND/OR…) ไม่ได้แยกวิเคราะห์สตริงลิเทอรัลและคิวรีย่อยที่ซ้อนกันอย่างแม่นยำ — สำหรับสภาพแวดล้อมการผลิต แนะนำให้ใช้ sql-formatter ในห่วงโซ่เครื่องมือ

เครื่องมือนี้มีประโยชน์กับคุณไหม?

วิธีใช้งาน

  1. Paste or type content: drop code/text into the SQL Formatter or fill the parameters.
  2. Choose mode/options: switch format, rules or processing as needed.
  3. Live output: results appear instantly — nothing is submitted, data stays in your browser.
  4. One-click copy: copy the output straight into your development environment.

ประเด็นสำคัญ

  • SQL Formatter is a free online developer tool — open and use, no sign-up.
  • All calculations run locally in your browser; your data never leaves the device.
  • Key capability: Uppercase keywords, indent, minify.
  • Results come with formulas and reference tables so you can verify every number.

หลักการและสูตรการคำนวณ

SQL Formatter formula

SQL Formatter uses standard developer formulas to compute accurate results instantly.

คำถามที่พบบ่อย

How do I use the SQL Formatter?
Open the page and fill in the input fields — results update automatically. Uppercase keywords, indent, minify.
Are the results accurate?
Yes. Standard formulas and conversion factors are used and verified.
Is it free? Do I need to sign up?
Completely free. No registration, login or download required.
Does it work on mobile?
Yes. The responsive design works on phones, tablets and desktops.
Is my data saved?
No. Everything runs locally in your browser.

เครื่องมือที่เกี่ยวข้อง

ดูเครื่องมือทั้งหมด 55 รายการในหมวดหมู่นี้ →

คู่มือที่เกี่ยวข้อง

แหล่งที่มาและการอัปเดต

Based on RFC 4648, ECMA-262 and related specifications. Last updated: 2025-07

อัปเดตล่าสุด:

สูตรและเนื้อหาในหน้านี้ได้รับการตรวจสอบซ้ำโดยทีมงาน YiJianSuan มีไว้สำหรับการเรียนรู้อ้างอิงเท่านั้น สำหรับการใช้งานจริงโปรดปฏิบัติตามข้อมูลอย่างเป็นทางการ

เนื้อหานี้ได้รับการดูแลและตรวจสอบซ้ำเป็นประจำโดยทีมงานแก้ไขของ YiJianSuan ขั้นตอนการอัปเดตและตรวจสอบสามารถดูได้ที่นโยบายการแก้ไขเนื้อหา.

อ้างอิงหน้านี้: YiJianSuan. เครื่องจัดรูปแบบ SQL[EB/OL]. https://www.yijiansuan.com/th/c/dev/sql-format

ผลลัพธ์ที่ได้จากเครื่องมือนี้มีไว้สำหรับการอ้างอิงเท่านั้น ไม่ถือเป็นคำแนะนำทางวิชาชีพใดๆ โปรดใช้ผลการคำนวณอย่างเป็นทางการเป็นหลัก