Re: How to process inverted comma in "EXECUTE 'insert into xxx values(...)

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: How to process inverted comma in "EXECUTE 'insert into xxx values(...)
Дата
Msg-id 46495D77.6050108@archonet.com
обсуждение исходный текст
Ответ на Re: How to process inverted comma in "EXECUTE 'insert into xxx values(...)  ("Nemo Terry" <ntuser155@hotmail.com>)
Ответы Re: How to process inverted comma in "EXECUTE 'insert into xxx values(...)  ("Nemo Terry" <ntuser155@hotmail.com>)
Список pgsql-sql
Nemo Terry wrote:
> But I must use it in function,so...
> Do you have another solution?

>>> because obj_name from another table has value like this:S'pore High 
>>> Polymer.
>>> Following error raises:
>>> ERROR: syntax error at or near "pore"

You'll want to look into the quote_ident() and quote_literal() functions
when constructing queries like this.

See functions and operators / string functions for details.

--  Richard Huxton Archonet Ltd


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

Предыдущее
От: "Nemo Terry"
Дата:
Сообщение: Re: How to process inverted comma in "EXECUTE 'insert into xxx values(...)
Следующее
От: "Rodrigo De León"
Дата:
Сообщение: Re: How to process inverted comma in "EXECUTE 'insert into xxx values(...)