Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion general/development/policies/codingstyle/sql.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ $records = $DB->get_records_sql($sql, ['above'=>111]);

## Indentation {/* #indentation */}

![sql_indentation.png](./_sql/sql_indentation.png)
![](./_sql/sql_indentation.png)

This image is a visual example of SQL indentation. It shows spaces used to horizontally align the last letter of the `SELECT`, `FROM`, `JOIN`, and `WHERE` keywords into the same vertical column.

## Subqueries {/* #subqueries */}

Expand Down
Loading