Re: Substring from end of string - Mailing list pgsql-general

From Joel Burton
Subject Re: Substring from end of string
Date
Msg-id JGEPJNMCKODMDHGOBKDNOECCCPAA.joel@joelburton.com
Whole thread Raw
In response to Substring from end of string  ("Tille, Andreas" <TilleA@rki.de>)
List pgsql-general
> -----Original Message-----
> From: pgsql-general-owner@postgresql.org
> [mailto:pgsql-general-owner@postgresql.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@joelburton.com | joelburton.com | aim: wjoelburton
Knowledge Management & Technology Consultant

pgsql-general by date:

Previous
From: "Joel Burton"
Date:
Subject: Re: How to select rows with values set to NULL
Next
From: "Sander Steffann"
Date:
Subject: Re: How to select rows with values set to NULL