Re: [GENERAL] Problem with apostrophe

Поиск
Список
Период
Сортировка
От Brett W. McCoy
Тема Re: [GENERAL] Problem with apostrophe
Дата
Msg-id Pine.BSI.3.91.980617155655.29739E-100000@access1.lan2wan.com
обсуждение исходный текст
Ответ на Re: [GENERAL] Problem with apostrophe  (Amos Hayes <ahayes@ingenia.com>)
Ответы Re: [GENERAL] Problem with apostrophe  (eric@gateway.ctlno.com)
Список pgsql-general
On Wed, 17 Jun 1998, Amos Hayes wrote:

> > Is there any way of having an apostrophe in a data field?
> > It is a problem because the apostrophe is the same character as the single
> > quote, so the database gets a parser error when a name such as "O'Brian"
> > is entered.
>
> Have you tried doubling up?   'O''Brian'
>
> That is what I have to do in Oracle anyway.

Isn't there an escape character, like the slash?

Brett W. McCoy
                                         http://www.lan2wan.com/~bmccoy
-----------------------------------------------------------------------
"The Number of UNIX installations has grown to 10, with more expected."
   -- The UNIX Programmer's Manual, 2nd Edition, June, 1972


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

Предыдущее
От: Amos Hayes
Дата:
Сообщение: Re: [GENERAL] Problem with apostrophe
Следующее
От: eric@gateway.ctlno.com
Дата:
Сообщение: Re: [GENERAL] Problem with apostrophe