How do I do this?

Поиск
Список
Период
Сортировка
От Wei Weng
Тема How do I do this?
Дата
Msg-id 4241A972.6040103@kencast.com
обсуждение исходный текст
Ответы Re: [despammed] How do I do this?  (Andreas Kretschmer <akretschmer@despammed.com>)
Re: How do I do this?  ("Greg Sabino Mullane" <greg@turnstep.com>)
Список pgsql-sql
I have a table with column filepath with contents that look like the following:

filepath
==============
/var/log/foo
/var/log/bar
/var/cache/foo
/var/cache/bar
/var/foo
/var/bar

Is there anyway to retrieve the directory information only regarding those 
filepaths?

So that I can get

/var/log
/var/cache
/var

as the result of a query?

Thanks!

(I am using PostgreSQL 7.4)



Wei



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

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