Re: [GENERAL] Problem with apostrophe

Поиск
Список
Период
Сортировка
От Jose' Soares Da Silva
Тема Re: [GENERAL] Problem with apostrophe
Дата
Msg-id Pine.LNX.3.96.980618093524.649A-100000@proxy.bazzanese.com
обсуждение исходный текст
Ответ на Problem with apostrophe  (eric@gateway.ctlno.com)
Список pgsql-general
On Wed, 17 Jun 1998 eric@gateway.ctlno.com 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.
>
> There must be a work-around, but I can not find any solution.
>
> thank you for your help
You may use doubble apostrophe as in O''Brian to match O'Brian this is
SQL92.
                                                           Jose'
                                  |  |
~~~~~~~~~~~~~~~~~~~~~~~~          |  |            ~~~~~~~~~~~~~~~~~~~~~~~~
          Progetto HYGEA      ----    ----        www.sferacarta.com
    Sfera Carta Software      ----    ----        sferac@bo.nettuno.it
       Via Bazzanese, 69          |  |            Fax. ++39 51 6131537
Casalecchio R.(BO) Italy          |  |            Tel. ++39 51  591054
-----------------------------------------------------------------------------


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

Предыдущее
От: Christoph Lorenz
Дата:
Сообщение: Re: [GENERAL] Problem with apostrophe
Следующее
От: Yuichiro Kinoshita
Дата:
Сообщение: ...