Re: Using escape strings in an insert statement.

Поиск
Список
Период
Сортировка
От Michael Glaesemann
Тема Re: Using escape strings in an insert statement.
Дата
Msg-id 4A068101-E181-4183-BB4D-44243B344F22@seespotcode.net
обсуждение исходный текст
Ответ на Re: Using escape strings in an insert statement.  (Erik Jones <erik@myemma.com>)
Список pgsql-sql
On Jul 3, 2007, at 10:49 , Erik Jones wrote:

> On Jul 2, 2007, at 6:11 PM, Michael Glaesemann wrote:
>
>>
>> On Jul 2, 2007, at 17:45 , Paul Lambert wrote:
>>
>>> tester=# insert into testing (test_text) values ('abcE'\\'123');
>>
>> This should be
>> INSERT INTO testing (test_text) values (E'abc\123');
>
> No, that will leave him with the string 'abc23' beinginserted, he  
> wants the backslash to be included in the string, that's why he had  
> two, so it should be:
>
> INSERT INTO testing (test_text) values (E'abc\\123');

Ah, right. Thanks for the correction, Erik.

Michael Glaesemann
grzm seespotcode net




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

Предыдущее
От: Scott Marlowe
Дата:
Сообщение: Re: Informix Schema -> PostgreSQL ?
Следующее
От: Bob Singleton
Дата:
Сообщение: Iterate and write a previous row to a temp table?