Re: Extract last 4 characters from string?

From: Ivan Sergio Borgonovo <mail(at)webthatworks(dot)it>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Extract last 4 characters from string?
Date: 2007-12-12 21:58:52
Message-ID: 20071212225852.6937e321@webthatworks.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, 12 Dec 2007 15:11:50 -0600
"D. Dante Lorenso" <dante(at)lorenso(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message D. Dante Lorenso 2007-12-12 21:59:14 Re: Extract last 4 characters from string?
Previous Message Tom Lane 2007-12-12 21:56:15 Re: data type change on a view