SQL क्वेरी को क्लॉज लाइन ब्रेक और सुसंगत कीवर्ड केसिंग के साथ फॉर्मेट और सुंदर बनाएं, या उन्हें एकल लाइन में मिनिफाई करें।
SQL Formatter का उपयोग कैसे करें
अपनी SQL क्वेरी इनपुट बॉक्स में पेस्ट करें।
इसे सुंदर बनाने के लिए Format या एक लाइन में संपीड़ित करने के लिए Minify चुनें।
कीवर्ड केसिंग चुनें, फिर परिणाम कॉपी करें।
This is a SQL formatter that takes a cramped, single-line or inconsistently styled query and beautifies it: each major clause on its own line, columns and conditions indented, and keyword casing made consistent. It can also do the reverse and minify a query to one line.
Readable SQL is easier to review, debug and maintain. When SELECT, FROM, WHERE, JOIN and GROUP BY each start a new line and the keywords share one casing, the shape of the query, what it returns and how it filters, becomes obvious at a glance.
Formatting is also useful right before committing a query so diffs stay small and reviewers see meaningful changes rather than reflowed whitespace.
You choose the keyword casing (for example uppercase keywords, which is the common convention) and whether to format or minify. The formatter is dialect-agnostic and handles the common ANSI SQL used by PostgreSQL, MySQL, SQLite and SQL Server.
Minify mode is handy for the opposite need: collapsing a formatted query back to a single line to embed in code or a config value.
The tool formats for readability rather than checking that your query is valid, so it will happily lay out a query with a typo in it. Treat clean output as a readability win, not a correctness check.
Everything runs in your browser, which matters because real queries often contain table names, column names and sometimes literal values that hint at your schema or data. None of that is uploaded.
अक्सर पूछे जाने वाले सवाल
यह SELECT, FROM, WHERE और JOIN जैसे प्रत्येक प्रमुख क्लॉज को अपनी लाइन पर रखता है, कॉलम और शर्तों को इंडेंट करता है, और पठनीयता के लिए कीवर्ड केसिंग सामान्य करता है।
नहीं। फॉर्मेटिंग पूरी तरह आपके ब्राउज़र में चलती है, इसलिए आपकी क्वेरी कभी आपके डिवाइस से बाहर नहीं जाती।
यह बोली-अज्ञेयवादी है और PostgreSQL, MySQL, SQLite और SQL Server द्वारा उपयोग की जाने वाली सामान्य ANSI SQL संभालता है।
इस टूल को एम्बेड करें
इस टूल को अपनी वेबसाइट में जोड़ें। नीचे दिया स्निपेट कॉपी करें; यह अपने आप अपडेट रहता है।
<iframe src="https://monu.tools/embed/hi/sql-formatter" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>संबंधित टूल
XML को उचित इंडेंटेशन के साथ सुंदर बनाएं, या इसे एकल लाइन में मिनिफाई करें। टिप्पणियां, CDATA और प्रोसेसिंग निर्देश संरक्षित हैं।
CSS को साफ इंडेंटेशन के साथ सुंदर बनाएं, या फ़ाइल आकार कम करने के लिए मिनिफाई करें। मीडिया क्वेरी, calc() और लाइसेंस टिप्पणियां संभालता है।
HTML को ब्लॉक-अवेयर इंडेंटेशन के साथ सुंदर बनाएं, या मिनिफाई करें। pre, textarea, script और style की सामग्री संरक्षित है।
JavaScript को सुसंगत इंडेंटेशन और स्पेसिंग के साथ सुंदर बनाएं और प्रिटिफाई करें। पूरी तरह आपके ब्राउज़र में चलता है।