How do I do this?

From: Wei Weng <wweng(at)kencast(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: How do I do this?
Date: 2005-03-23 17:37:54
Message-ID: 4241A972.6040103@kencast.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Michael Long 2005-03-23 17:59:45 Re: best way to swap two records (computer details)
Previous Message Gary Stainburn 2005-03-23 17:28:58 Re: best way to swap two records (computer details)