Re: [INTERFACES] How to store '

Поиск
Список
Период
Сортировка
От Ken J. Wright
Тема Re: [INTERFACES] How to store '
Дата
Msg-id 3.0.32.19990510093856.00803e20@ren.cncware.com
обсуждение исходный текст
Ответы Re: [INTERFACES] How to store '  (Herouth Maoz <herouth@oumail.openu.ac.il>)
Список pgsql-interfaces
At 02:56 PM 5/10/99 +0200, you wrote:
>"Ken J. Wright" ha scritto:
>
>> You have to preceed each occurence of ' with a \.
>> So "test'string" becomes "test\'string".
>>
>
>SQL92 says that you have to use the ' twice. If you want to write portable
>code, then:
>
>INSERT INTO table1 VALUES('WHAT''S THAT ?');
>and it becomes: WHAT'S THAT ?.

But just to clarify further, that only works with sql. Copy needs the '\'
approach.
So many choices ;-)

Ken



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

Предыдущее
От: abdelkrim
Дата:
Сообщение: problem with insertion in table
Следующее
От: Hannu Krosing
Дата:
Сообщение: Re: [INTERFACES] postgres -> ms sql7 odbc driver