Formateador de SQL
Facilita la lectura de SQL en el dialecto que elijas.
Formateador de SQL
Cómo usar Formateador de SQL
SQL formatter reformats a SQL query so each clause, such as SELECT, FROM, WHERE and ORDER BY, starts on its own line with its items indented below. You choose the dialect: standard SQL, PostgreSQL, MySQL, SQLite or Transact-SQL. Keyword case is kept as you typed it, and the query is only formatted, never run.
- Pega la fuente en el editor de entrada o carga el ejemplo integrado.
- Configura el dialecto SQL.
- Ejecuta el formateador de SQL, revisa la salida y usa los controles disponibles para copiar o descargar.
Qué admite esta herramienta
Facilita la lectura de SQL en el dialecto que elijas.
- Dialecto SQL
- sql · postgresql · mysql · sqlite · transactsql
Límites y procesamiento
Las operaciones de texto aceptan generalmente hasta 2,000,000 caracteres. Los analizadores, generadores y fórmulas individuales aplican límites adicionales que muestran sus controles.
Fuente de ejemplo
select id, name from people where active=true order by name
Preguntas frecuentes
Which SQL dialects can I format?
The SQL dialect setting offers standard SQL, PostgreSQL, MySQL, SQLite and Transact-SQL. Choosing the dialect that matches your database helps the formatter recognize its specific syntax.
Does the SQL formatter change keywords to uppercase?
No. Keywords keep the case you entered, so a lowercase select stays lowercase. The formatter changes line breaks, indentation and spacing around operators.
Can I format several SQL statements at once?
Yes. Paste multiple statements separated by semicolons and each one is laid out on its own lines with the same dialect rules.
¿Dónde se procesa mi entrada?
Esta operación procesa su fuente en tu navegador. Copiar y descargar son acciones explícitas; la entrada de origen no se guarda en una cuenta ni en un historial.
¿Cuáles son los límites de entrada?
Las operaciones de texto aceptan generalmente hasta 2,000,000 caracteres. Los analizadores, generadores y fórmulas individuales aplican límites adicionales que muestran sus controles.