1
0
Fork 0
mirror of https://github.com/treffynnon/sqlstyle.guide.git synced 2025-03-09 12:49:51 -05:00

Probably use WITH

This commit is contained in:
apurvis@lumoslabs.com 2016-05-28 16:16:11 +08:00
parent ed47fa6f6e
commit cf8a857247

View file

@ -291,8 +291,8 @@ FROM my_tmp_table
#### Sub-queries
In PostgreSQL you should be doing subqueries with `WITH` clauses and avoiding the use of inline
subqueries.
In PostgreSQL you should probably be writing subqueries with `WITH` clauses and mostly avoiding the
use of inline subqueries.
In MySQL or other query engines that do not support `WITH`, sub-queries should be left aligned 2
spaces to the right of the opening parentheses and then laid out using the same style as a `WITH`