| От | Raymond O'Donnell |
|---|---|
| Тема | Re: Escape double-quotes in text[]? |
| Дата | |
| Msg-id | 536015F3.2030408@iol.ie обсуждение исходный текст |
| Ответ на | Escape double-quotes in text[]? (Raymond O'Donnell <rod@iol.ie>) |
| Список | pgsql-general |
On 29/04/2014 22:10, Raymond O'Donnell wrote:
> Hi all,
>
> Probably a silly question, but I'm having trouble figuring out the
> answer... if I'm constructing an string representation of a value to go
> into a text[] column, and one of the text literals includes
> double-quotes, do I need to escape the literal?
>
> For example, can I insert something like this into a text[] column
> directly? -
>
> '{"abc", "de"f"}'
>
> Or would I need to do this? -
>
> E'{"abc", "de"f"}'
>
> ....or something different again? I'm doing this from PHP via the Zend
> framework (v.1) if it makes any difference.
....and I should have mentioned that I'm on PostgreSQL 9.3.
R.
--
Raymond O'Donnell :: Galway :: Ireland
rod@iol.ie
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера