Re: What is the regex for apostraphe in postgres?

Поиск
Список
Период
Сортировка
От Torsten Grust
Тема Re: What is the regex for apostraphe in postgres?
Дата
Msg-id e0d3c0e0-2735-49ea-88e3-176f11324303@www.fastmail.com
обсуждение исходный текст
Ответ на What is the regex for apostraphe in postgres?  (Shaozhong SHI <shishaozhong@gmail.com>)
Ответы Re: What is the regex for apostraphe in postgres?  (Steve Midgley <science@misuse.org>)
Список pgsql-sql
Hi David,

in a SQL string literal (or regular expression), an apostrophe is represented by '' (double apostrophe):

  SELECT 'foo''bar' SIMILAR TO '_+''_+';
  -> #t

Cheers,
  —T

On Thu, Oct 14, 2021, at 12:31, Shaozhong SHI wrote:
Can we check whether a text string contains apostraphe ' of not?

Regards,

David

--
| Torsten Grust


В списке pgsql-sql по дате отправления:

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: What is the regex for apostraphe in postgres
Следующее
От: Metin Ulusinan
Дата:
Сообщение: Re: Fault with initcap