From b16e12cb6e5a95addc28ecad55c6eb2ddaf65207 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Fri, 11 Dec 2020 08:18:33 +0100 Subject: [PATCH] Documentation --- Documentation/CommonTableExpressions.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/CommonTableExpressions.md b/Documentation/CommonTableExpressions.md index bd7390ea1..fe95101ea 100644 --- a/Documentation/CommonTableExpressions.md +++ b/Documentation/CommonTableExpressions.md @@ -141,18 +141,18 @@ Common table expressions can also be embedded in [SQLRequest] with [SQL Interpol // SELECT * FROM player // WHERE name = (SELECT * FROM playerName) let request: SQLRequest = """ - WITH \(definitionFor: playerNameCTE) -- embeds the CTE definition + WITH \(definitionFor: playerNameCTE) SELECT * FROM player - WHERE name = (SELECT * FROM \(playerNameCTE)) -- embeds the CTE table name + WHERE name = (SELECT * FROM \(playerNameCTE)) """ // WITH playerName AS (SELECT 'O''Brien') // SELECT * FROM player // WHERE name = (SELECT * FROM playerName) let request: SQLRequest = """ - WITH \(definitionFor: playerNameCTE) -- embeds the CTE definition + WITH \(definitionFor: playerNameCTE) SELECT * FROM player - WHERE name = (\(playerNameCTE.all())) -- embeds the CTE request + WHERE name = (\(playerNameCTE.all())) """ ```