remove everything before the period

Поиск
Список
Период
Сортировка
От karinos57
Тема remove everything before the period
Дата
Msg-id 1379384497904-5771179.post@n5.nabble.com
обсуждение исходный текст
Ответы Re: remove everything before the period  (Giuseppe Broccolo <giuseppe.broccolo@2ndquadrant.it>)
Список pgsql-general
Hi,
I am trying to remove everything before the period in other words i only
want to show the values that starts from the period.  For instance
897.78 ==> 78
74.25 ==> 25
3657.256 ==> 256

well the code below only shows everything before the period but i want to
show everything after the period

select volume, substring(volume from 1 for position('.' in volume) - 1) as
column
from MyTable    ;




--
View this message in context:
http://postgresql.1045698.n5.nabble.com/remove-everything-before-the-period-tp5771179.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


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

Предыдущее
От: karinos57
Дата:
Сообщение: Re: using Replace funcion in postgresql
Следующее
От: tdev457
Дата:
Сообщение: Number of WAL segment