Re: problems with single quotes..

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: problems with single quotes..
Дата
Msg-id 20011201234829.F77227-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на problems with single quotes..  ("Megalex" <megalex@klanomega.com>)
Список pgsql-sql
On Thu, 4 Jan 2001, Megalex wrote:

> ok.. here is my deal..
>
> everytime i try to run an insert and my text contains '\'
> it fails..
>
> an sql example would be.
>
> Insert Into table(userID,FirstName,LastName) values(1,'''\''','test')
> and i get this message...
>
> Error while executing the query; ERROR: parser: parse error at or near
> "test"
>
> how can i fix this??

You'll need to backslash escape that backslash.



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

Предыдущее
От: "Megalex"
Дата:
Сообщение: Re: problems with single quotes..
Следующее
От: Joe Conway
Дата:
Сообщение: Re: problems with single quotes..