mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 07:08:01 +00:00
Remove some redundant wording
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
# Escaping A Quote In A String
|
# Escaping A Quote In A String
|
||||||
|
|
||||||
In PostgreSQL, string (`varchar` and `text`) literals are declared with
|
In PostgreSQL, string (`varchar` and `text`) literals are declared with
|
||||||
single quotes (`'`). That means that any string containing a single quote as
|
single quotes (`'`). That means that any string containing a single quote
|
||||||
part of the content of the string will need some escaping. The way to escape
|
will need some escaping. The way to escape a single quote is with another
|
||||||
a single quote is with another single quote.
|
single quote.
|
||||||
|
|
||||||
```sql
|
```sql
|
||||||
> select 'what''s up!';
|
> select 'what''s up!';
|
||||||
|
|||||||
Reference in New Issue
Block a user