diff --git a/docs/en/sql-reference/syntax.md b/docs/en/sql-reference/syntax.md index 6a4afb63db8..13c3a8e40eb 100644 --- a/docs/en/sql-reference/syntax.md +++ b/docs/en/sql-reference/syntax.md @@ -154,6 +154,10 @@ There are two way to define a query parameter: - use the `SET param_=` command - use `--param_=''` as an argument to `clickhouse-client` on the command line. `` is the name of the query parameter and `` is its value +:::note +If you are using [string literals](#string) as value, you still have to escape characters +::: + A query parameter can be referenced in a query using `{: }`, where `` is the query parameter name and `` is the datatype it is converted to. For example, the following SQL defines parameters named `a`, `b`, `c` and `d` - each with a different data type: