Re: How do I do this?

Поиск
Список
Период
Сортировка
От Greg Sabino Mullane
Тема Re: How do I do this?
Дата
Msg-id 8a3ceba57e3d59a95af0bd61a1057e44@biglumber.com
обсуждение исходный текст
Ответ на How do I do this?  (Wei Weng <wweng@kencast.com>)
Список pgsql-sql
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


> I have a table with column filepath with contents that look like the following:
..
> Is there anyway to retrieve the directory information only regarding those
> filepaths?

SELECT rtrim(substring(filepath from '.+/'),'/') FROM mytable;

- --
Greg Sabino Mullane greg@turnstep.com
PGP Key: 0x14964AC8 200503232033
http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8

-----BEGIN PGP SIGNATURE-----

iD8DBQFCQhkMvJuQZxSWSsgRAjTaAJ9zmgSOBH/Nre/XMw+JajBni8YyDwCg1DyV
Cd5rIhi026KFoFZEFjMOYvI=
=V9ov
-----END PGP SIGNATURE-----




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

Предыдущее
От: Gary Stainburn
Дата:
Сообщение: Re: best way to swap two records (computer details)
Следующее
От: Edmund Bacon
Дата:
Сообщение: Re: Self-referencing table question