Skip to content

Commit

Permalink
Adding documentation about double quote implementation (#723)
Browse files Browse the repository at this point in the history
Signed-off-by: mitchellg <mitchellg@bitquilltech.com>
Co-authored-by: Yury Fridlyand <yuryf@bitquilltech.com>
  • Loading branch information
MitchellGale and Yury-Fridlyand authored Aug 8, 2022
1 parent 792d3ff commit 921a28c
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions docs/user/general/datatypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -353,16 +353,15 @@ A string can also represent and be converted to date and time types (except to i
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 include double quotes within single quoted string or single quotes within double quoted string::
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::

os> SELECT 'hello', "world", '"hello"', "'world'"
os> SELECT 'hello', "world", '"hello"', "'world'", '''hello''', """world"""
fetched rows / total rows = 1/1
+-----------+-----------+-------------+-------------+
| 'hello' | "world" | '"hello"' | "'world'" |
|-----------+-----------+-------------+-------------|
| hello | world | "hello" | 'world' |
+-----------+-----------+-------------+-------------+

+-----------+-----------+-------------+-------------+---------------+---------------+
| 'hello' | "world" | '"hello"' | "'world'" | '''hello''' | """world""" |
|-----------+-----------+-------------+-------------+---------------+---------------|
| hello | world | "hello" | 'world' | 'hello' | "world" |
+-----------+-----------+-------------+-------------+---------------+---------------+

Boolean Data Types
==================
Expand Down

0 comments on commit 921a28c

Please sign in to comment.