From 9752afb59987cbe874fa6e847b9baa132cd06650 Mon Sep 17 00:00:00 2001 From: Yury-Fridlyand Date: Mon, 10 Jul 2023 11:36:04 -0700 Subject: [PATCH] Add example of quote escaping. Signed-off-by: Yury-Fridlyand --- docs/user/general/datatypes.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/user/general/datatypes.rst b/docs/user/general/datatypes.rst index 79d1c2d494..f14edd6005 100644 --- a/docs/user/general/datatypes.rst +++ b/docs/user/general/datatypes.rst @@ -434,13 +434,13 @@ String Data Types A string is a sequence of characters enclosed in either single or double quotes. For example, both 'text' and "text" will be treated as string literal. To use quote characters in a string literal, you can use two quotes of the same type as the enclosing quotes or a backslash symbol (``\``):: - os> SELECT 'hello', "world", '"hello"', "'world'", '''hello''', """world""", 'I\'m', "I\"m" + os> SELECT 'hello', "world", '"hello"', "'world'", '''hello''', """world""", 'I\'m', 'I''m', "I\"m" fetched rows / total rows = 1/1 - +-----------+-----------+-------------+-------------+---------------+---------------+----------+----------+ - | 'hello' | "world" | '"hello"' | "'world'" | '''hello''' | """world""" | 'I\'m' | "I\"m" | - |-----------+-----------+-------------+-------------+---------------+---------------+----------+----------| - | hello | world | "hello" | 'world' | 'hello' | "world" | I'm | I"m | - +-----------+-----------+-------------+-------------+---------------+---------------+----------+----------+ + +-----------+-----------+-------------+-------------+---------------+---------------+----------+----------+----------+ + | 'hello' | "world" | '"hello"' | "'world'" | '''hello''' | """world""" | 'I\'m' | 'I''m' | "I\"m" | + |-----------+-----------+-------------+-------------+---------------+---------------+----------+----------+----------| + | hello | world | "hello" | 'world' | 'hello' | "world" | I'm | I'm | I"m | + +-----------+-----------+-------------+-------------+---------------+---------------+----------+----------+----------+ Boolean Data Types ==================