From d5465d32e12c2181853bf03fd0cd5f21d36ad145 Mon Sep 17 00:00:00 2001 From: Denny Crane Date: Wed, 17 Aug 2022 09:38:06 -0300 Subject: [PATCH] Update settings.md --- docs/en/operations/settings/settings.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/en/operations/settings/settings.md b/docs/en/operations/settings/settings.md index ae0d2eeb595..5a0263a1247 100644 --- a/docs/en/operations/settings/settings.md +++ b/docs/en/operations/settings/settings.md @@ -3095,14 +3095,14 @@ Exception: Total regexp lengths too large. ## enable_positional_arguments {#enable-positional-arguments} -Enables or disables supporting positional arguments for [GROUP BY](../../sql-reference/statements/select/group-by.md), [LIMIT BY](../../sql-reference/statements/select/limit-by.md), [ORDER BY](../../sql-reference/statements/select/order-by.md) statements. When you want to use column numbers instead of column names in these clauses, set `enable_positional_arguments = 1`. +Enables or disables supporting positional arguments for [GROUP BY](../../sql-reference/statements/select/group-by.md), [LIMIT BY](../../sql-reference/statements/select/limit-by.md), [ORDER BY](../../sql-reference/statements/select/order-by.md) statements. Possible values: - 0 — Positional arguments aren't supported. - 1 — Positional arguments are supported: column numbers can use instead of column names. -Default value: `0`. +Default value: `1`. **Example** @@ -3113,8 +3113,6 @@ CREATE TABLE positional_arguments(one Int, two Int, three Int) ENGINE=Memory(); INSERT INTO positional_arguments VALUES (10, 20, 30), (20, 20, 10), (30, 10, 20); -SET enable_positional_arguments = 1; - SELECT * FROM positional_arguments ORDER BY 2,3; ```