From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
---|---|
To: | Adam Lawrence <adam(at)mediasculpt(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Trying to append text to the end of a text string |
Date: | 2005-10-05 23:00:21 |
Message-ID: | 20051005230018.GG12206@svana.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Thu, Oct 06, 2005 at 11:30:53AM +1300, 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);
Try standard SQL:
P_IDT_ID || cast(''S'' as text)
Hope this helps,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.
From | Date | Subject | |
---|---|---|---|
Next Message | John DeSoi | 2005-10-06 01:10:25 | Re: portable pgsql binary/pkg building on OSX ... |
Previous Message | Jim C. Nasby | 2005-10-05 22:51:42 | Re: Trying to append text to the end of a text string |