From: | "Joel Burton" <joel(at)joelburton(dot)com> |
---|---|
To: | "Tille, Andreas" <TilleA(at)rki(dot)de>, "PostgreSQL General" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Substring from end of string |
Date: | 2002-05-23 12:39:13 |
Message-ID: | JGEPJNMCKODMDHGOBKDNOECCCPAA.joel@joelburton.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
> -----Original Message-----
> From: pgsql-general-owner(at)postgresql(dot)org
> [mailto:pgsql-general-owner(at)postgresql(dot)org]On Behalf Of Tille, Andreas
> Sent: Thursday, May 23, 2002 4:12 AM
> To: PostgreSQL General
> Subject: [GENERAL] Substring from end of string
>
>
> Hello,
>
> I have to port a MS SQL implemented application. There is a string
> function called "Right(string,num)" which returns num characters
> from the end of the string.
>
> I did nout found something in functions-string.html which might
> fit for this purpose.
>
> Any hint?
>
> Kind regards
To find the last 3 characters of a:
substring ( a from length (a) - 2 );
- J.
Joel BURTON | joel(at)joelburton(dot)com | joelburton.com | aim: wjoelburton
Knowledge Management & Technology Consultant
From | Date | Subject | |
---|---|---|---|
Next Message | Joel Burton | 2002-05-23 13:00:11 | Re: sequence / last_value problem |
Previous Message | Joel Burton | 2002-05-23 12:36:57 | Re: How to select rows with values set to NULL |