Re: Escaping special characters

Поиск
Список
Период
Сортировка
От Sam Mason
Тема Re: Escaping special characters
Дата
Msg-id 20090317123648.GA32672@frubble.xen.chris-lamb.co.uk
обсуждение исходный текст
Ответ на Escaping special characters  (Neanderthelle Jones <elle@view.net.au>)
Ответы Re: Escaping special characters  (Neanderthelle Jones <elle@view.net.au>)
Список pgsql-general
On Tue, Mar 17, 2009 at 10:35:20PM +1030, Neanderthelle Jones wrote:
> About the string "Smith \& Jones".
>
> According to the documentation,
>
> INSERT INTO thing (name) VALUES ('Smith E'\\'& Jones');
>
> must work.  But it doesn't.

You're putting things in the wrong places!  The "E" says that the
following literal is using C style escaping.  I.e. you want to say:

  E'Smith \\& Jones'

Hope that helps!

--
  Sam  http://samason.me.uk/

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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: Escaping special characters
Следующее
От: Thom Brown
Дата:
Сообщение: Re: Escaping special characters