Re: the use of $$string$$

Поиск
Список
Период
Сортировка
От bricklen
Тема Re: the use of $$string$$
Дата
Msg-id CAGrpgQ_yzxAFaboYEzAum7piWYyhppo2PoBX8awv4j6HxevrmA@mail.gmail.com
обсуждение исходный текст
Ответ на the use of $$string$$  (John Fabiani <johnf@jfcomputer.com>)
Список pgsql-sql
On Fri, Nov 4, 2011 at 7:38 AM, John Fabiani <johnf@jfcomputer.com> wrote:
> Hi,
> I just discovered that I can use $$string$$ to account for the problem of
> single quotes in the string (or other strange char's).  However, I noticed
> that the table field contained E'string'.  I actually tried to find info on
> this but I did not find anything.

E'...' is the escape string syntax. You can find examples of it in
this page (among others)
http://www.postgresql.org/docs/9.0/interactive/functions-matching.html
You might want to read up on standard_conforming_strings and
escape_string_warning too, as they influence how the escaping works.


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

Предыдущее
От: John Fabiani
Дата:
Сообщение: the use of $$string$$
Следующее
От: Tom Lane
Дата:
Сообщение: Re: the use of $$string$$