| От | Scott Marlowe |
|---|---|
| Тема | Re: Trying to append text to the end of a text string |
| Дата | |
| Msg-id | 1128552602.29347.177.camel@state.g2switchworks.com обсуждение |
| Ответ на | Trying to append text to the end of a text string ("Adam Lawrence" <adam@mediasculpt.com>) |
| Список | pgsql-general |
On Wed, 2005-10-05 at 17:30, Adam Lawrence wrote:
> Hi
>
> I am trying to append text onto the end of a text variable.
>
> I have the text variable P_IDT_ID, I want to add the letter S to the
> end of it, so I tried the following line in my code:
>
> P_IDT_ID := P_IDT_ID && cast(''S'' as text);
>
> However, I got the following error message:
>
> ERROR: operator does not exist: text && text
> HINT: No operator matches the given name and argument type(s). You
> may need to add explicit type casts.
> CONTEXT: SQL statement "SELECT $1 && cast('S' as text)"
> PL/pgSQL function "f_create_index_currency_inversion" line 28 at
> assignment
Did you try using the || concatenation operator there?
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера