Search Postgresql Archives

Re: Extract last 4 characters from string?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 12 Dec 2007 15:11:50 -0600
"D. Dante Lorenso" <dante@xxxxxxxxxxx> 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


---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux