Re: Extract last 4 characters from string?

Поиск
Список
Период
Сортировка
От D. Dante Lorenso
Тема Re: Extract last 4 characters from string?
Дата
Msg-id 476059B2.7010204@lorenso.com
обсуждение исходный текст
Ответ на Re: Extract last 4 characters from string?  ("Rodrigo De León" <rdeleonp@gmail.com>)
Список pgsql-general
Rodrigo De León wrote:
> On Dec 12, 2007 4:11 PM, D. Dante Lorenso <dante@lorenso.com> wrote:
>> Is there an easy (preferred) method that I'm missing?
> select substring('ABCDEFGHIJKLMNOP' from '....$');

Thanks!  Now, since I'd like to see a number in there, I'll do this:

   SELECT SUBSTRING('ABCDEFGHIJKLMNOP' FROM '.{4}$');

That does look a lot better than what I was cooking up ... appreciate
the help!

-- Dante

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: data type change on a view
Следующее
От: Ben
Дата:
Сообщение: Insert/Update/Delete views with INSTEAD OF