format_sql
Format T-SQL into a consistent canonical style by adding AS to aliases and rewriting expressions, without altering the meaning.
Instructions
Pretty-print T-SQL in one canonical style. Normalises cosmetics (adds AS to aliases, rewrites '[x] = expr' aliases to 'expr AS [x]'); meaning is unchanged. Comments inside expressions may move.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes |