Re: problems with single quotes..

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: problems with single quotes..
Дата
Msg-id 20966.1007305222@sss.pgh.pa.us
обсуждение исходный текст
Ответ на problems with single quotes..  ("Megalex" <megalex@klanomega.com>)
Ответы Re: problems with single quotes..  (Roberto Mello <rmello@cc.usu.edu>)
Список pgsql-sql
"Megalex" <megalex@klanomega.com> writes:
> Insert Into table(userID,FirstName,LastName) values(1,'''\''','test')

You're not counting/escaping your quotes correctly.  That literal is
unterminated:

'        opening quote
''        quoted quote (to put a quote in the string)
\'        escaped quote (another way to do the same)
''        quoted quote
oops        you're still inside the literal

I don't know what combination of quotes and/or backslashes you actually
meant to insert, but this command is wrong.
        regards, tom lane


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

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