منسّق SQL
نسّق عبارات SQL بالمسافات البادئة دون الاتصال بقاعدة بيانات أو تنفيذها.
المدخلات
تلميح: اضغط Ctrl + Enter للتشغيل
الإعدادات المحفوظة
المساعدة المفصلة أدناه متاحة بالإنجليزية فقط حاليًا.
حول هذه الأداة
Queries copied from logs, ORMs or one-line scripts are hard to read and review. This formatter re-indents SQL statements, puts major clauses (SELECT, FROM, WHERE, JOIN, ORDER BY) on their own lines and uppercases keywords, making the structure obvious before you debug or share a query.
It only reformats text. It does not connect to any database, check that tables exist, or execute anything.
طريقة الاستخدام
- Paste one or more SQL statements.
- Confirm the server-side processing and run the formatter.
- Copy the formatted SQL back into your editor or ticket.
- Review it; formatting does not validate syntax for your specific database.
كيف يعمل الحساب
The text is processed by the sqlparse library with reindent and uppercase keywords. Comments and literals are preserved.
مثال تطبيقي
The one-line query "select id, name from users where active = 1 order by name;" becomes SELECT id, name on the first lines, then FROM users, WHERE active = 1 and ORDER BY name on separate lines, with keywords in capitals.
القيود
- Up to 50,000 characters.
- Formatting only; no validation or execution.
- Style options (indent width, keyword case) are fixed.
آخر تحديث:
الأسئلة الشائعة
Which SQL dialects are supported?
It formats common SQL used by PostgreSQL, MySQL, SQLite and SQL Server. Very dialect-specific syntax may be formatted imperfectly.
Does it fix syntax errors?
No. It reformats what you give it; invalid SQL stays invalid.
Is my query stored?
It is processed in a temporary job on the server and not kept after the request.
استكشاف الأخطاء وإصلاحها
The result looks odd around a vendor-specific clause.
The parser may not recognize it. Format that part by hand.
Nothing happens when I run it.
Tick the processing confirmation box; server tools need it.
Sensitive data is in the query.
Replace real values with placeholders before formatting queries that contain personal data.
الخصوصية & مجاني
هل تُخزَّن مدخلاتي؟
ترفع هذه الأداة الملفات أو المدخلات إلى معالجنا المعزول. تُحذف ملفات العمل بعد انتهاء المهمة. لا ترسل مواد حساسة أو سرية.
هل هذه الأداة مجانية؟
نعم. لا يلزم تسجيل أو دفع.
انظر أيضًا
خطوات تالية مفيدة
منسّق JSON ومدقّقه
تحقّق من JSON أو نسّقه أو صغّره محليًا. لا تُرسل البيانات غير الصالحة إلى أي خادم.
المطورون وتحسين محركات البحثمحوّل CSV إلى JSON
حوّل ترويسات وسجلات CSV إلى JSON مع دعم الفواصل بين علامات الاقتباس وفواصل الأسطر.
المطورون وتحسين محركات البحثمحوّل JSON إلى CSV
حوّل مصفوفة مسطّحة من الكائنات إلى CSV. تُضاف بادئة حماية إلى النصوص الشبيهة بالمعادلات عند الاستيراد إلى جداول البيانات.
المطورون وتحسين محركات البحث