diff --git a/ydb/docs/en/core/reference/ydb-cli/parameterized-query-execution.md b/ydb/docs/en/core/reference/ydb-cli/parameterized-query-execution.md index b02da602afaf..689fdfda9390 100644 --- a/ydb/docs/en/core/reference/ydb-cli/parameterized-query-execution.md +++ b/ydb/docs/en/core/reference/ydb-cli/parameterized-query-execution.md @@ -573,16 +573,16 @@ for i in $(seq 1 100000); do echo "$i"; done | \ Delete all records with `id` greater than 10: ```bash -{{ ydb-cli }} -p quickstart sql \ - -s 'SELECT t.id FROM test_delete_1 AS t WHERE t.id > 10' \ - --format json-unicode | \ {{ ydb-cli }} -p quickstart sql \ -s 'DECLARE $lines AS List>; DELETE FROM test_delete_1 WHERE id IN (SELECT tl.id FROM AS_TABLE($lines) AS tl)' \ --input-framing newline-delimited \ --input-param-name lines \ --input-batch adaptive \ - --input-batch-max-rows 10000 + --input-batch-max-rows 10000 \ + --input-file <(ydb -p quickstart sql \ + -s 'SELECT t.id FROM test_delete_1 AS t WHERE t.id < 10' \ + --format json-unicode) ``` #### Processing messages read from a topic {#example-adaptive-pipeline-from-topic} diff --git a/ydb/docs/ru/core/reference/ydb-cli/parameterized-query-execution.md b/ydb/docs/ru/core/reference/ydb-cli/parameterized-query-execution.md index 7d942845b6a4..2fd8b4d2bf84 100644 --- a/ydb/docs/ru/core/reference/ydb-cli/parameterized-query-execution.md +++ b/ydb/docs/ru/core/reference/ydb-cli/parameterized-query-execution.md @@ -570,16 +570,16 @@ for i in $(seq 1 100000); do echo "$i";done | \ Удалим все записи со значениями `id` больше 10: ```bash -{{ ydb-cli }} -p quickstart sql \ - -s 'SELECT t.id FROM test_delete_1 AS t WHERE t.id > 10' \ - --format json-unicode | \ {{ ydb-cli }} -p quickstart sql \ -s 'DECLARE $lines AS List>; DELETE FROM test_delete_1 WHERE id IN (SELECT tl.id FROM AS_TABLE($lines) AS tl)' \ --input-framing newline-delimited \ --input-param-name lines \ --input-batch adaptive \ - --input-batch-max-rows 10000 + --input-batch-max-rows 10000 \ + --input-file <(ydb -p quickstart sql \ + -s 'SELECT t.id FROM test_delete_1 AS t WHERE t.id < 10' \ + --format json-unicode) ``` #### Обработка сообщений, считываемых из топика {#example-adaptive-pipeline-from-topic}