AI SQL Formatting
AI SQL Formatting restructures the selected SQL statement to improve readability and make review easier.
What It Does
- Recognizes SQL structure and reflows it into a clearer layout.
- Improves line breaks, indentation, and keyword presentation.
- Works especially well for joins, subqueries, and longer conditional logic.
Prerequisites
- Open a SQL Console that supports AI formatting.
- Make sure the editor already contains the SQL you want to format.
Steps
- Open the SQL Console for the target data source.
- Select the SQL statement you want to format.
- Trigger AI Format. Depending on the console version, the entry may appear in an AI-related action area or in the right-click menu.
- Review the formatted result and continue editing or saving it as needed.
Tips
- AI formatting improves structure and readability, but it does not replace SQL semantic validation.
- For important SQL, consider following it with AI SQL Optimization or an execution-plan review.