Re: Extract last 4 characters from string? - Mailing list pgsql-general

From Ivan Sergio Borgonovo
Subject Re: Extract last 4 characters from string?
Date
Msg-id 20071212225852.6937e321@webthatworks.it
Whole thread Raw
In response to Extract last 4 characters from string?  ("D. Dante Lorenso" <dante@lorenso.com>)
List pgsql-general
On Wed, 12 Dec 2007 15:11:50 -0600
"D. Dante Lorenso" <dante@lorenso.com> wrote:

>    SELECT SUBSTR('ABCDEFGHIJKLMNOP', -4);

there is an example in the manual... still "regexpyous"

http://www.postgresql.org/docs/8.1/static/functions-string.html

substring('Thomas' from '...$') -> mas

--
Ivan Sergio Borgonovo
http://www.webthatworks.it


pgsql-general by date:

Previous
From: "Rodrigo De León"
Date:
Subject: Re: Extract last 4 characters from string?
Next
From: Tom Lane
Date:
Subject: Re: data type change on a view