From edce91a5e444fbd383afcb8ff8440d957b954a97 Mon Sep 17 00:00:00 2001 From: Igor Date: Wed, 22 Jan 2025 16:36:59 +0300 Subject: [PATCH] improving in docs --- .../reference/yql-core/syntax/create-group.md | 20 +++++++++++++++++-- .../reference/yql-core/syntax/create-group.md | 20 +++++++++++++++++-- 2 files changed, 36 insertions(+), 4 deletions(-) diff --git a/ydb/docs/en/core/yql/reference/yql-core/syntax/create-group.md b/ydb/docs/en/core/yql/reference/yql-core/syntax/create-group.md index b0b833e28ce8..d2ba01c96ea7 100644 --- a/ydb/docs/en/core/yql/reference/yql-core/syntax/create-group.md +++ b/ydb/docs/en/core/yql/reference/yql-core/syntax/create-group.md @@ -2,10 +2,26 @@ Creates a group with the specified name. -Syntax: +## Syntax ```yql -CREATE GROUP group_name +CREATE GROUP group_name [ WITH user_name [ , user_name [ ... ]] [ , ] ] ``` +### Parameters + * `group_name`: The name of the group. It may contain lowercase Latin letters and digits. +* `user_name`: The name of the user. It may contain lowercase Latin letters and digits. + +## Examples {#examples} +```yql +CREATE GROUP group1; +``` + +```yql +CREATE GROUP group2 WITH USER user1; +``` + +```yql +CREATE GROUP group3 WITH USER user1, user2,; +``` diff --git a/ydb/docs/ru/core/yql/reference/yql-core/syntax/create-group.md b/ydb/docs/ru/core/yql/reference/yql-core/syntax/create-group.md index c0c86aa2375b..cd5113970bf1 100644 --- a/ydb/docs/ru/core/yql/reference/yql-core/syntax/create-group.md +++ b/ydb/docs/ru/core/yql/reference/yql-core/syntax/create-group.md @@ -2,10 +2,26 @@ Создает группу с указанным именем. -Синтаксис: +## Синтаксис ```yql -CREATE GROUP group_name +CREATE GROUP group_name [ WITH user_name [ , user_name [ ... ]] [ , ] ] ``` +### Параметры + * `group_name` — имя группы. Может содержать строчные буквы латинского алфавита и цифры. +* `user_name` — имя пользователя. Может содержать строчные буквы латинского алфавита и цифры. + +## Примеры {#examples} +```yql +CREATE GROUP group1; +``` + +```yql +CREATE GROUP group2 WITH USER user1; +``` + +```yql +CREATE GROUP group3 WITH USER user1, user2,; +```