From: | "Greg Sabino Mullane" <greg(at)turnstep(dot)com> |
---|---|
To: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: How do I do this? |
Date: | 2005-03-24 01:34:03 |
Message-ID: | 8a3ceba57e3d59a95af0bd61a1057e44@biglumber.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)turnstep(dot)com
PGP Key: 0x14964AC8 200503232033
http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8
-----BEGIN PGP SIGNATURE-----
iD8DBQFCQhkMvJuQZxSWSsgRAjTaAJ9zmgSOBH/Nre/XMw+JajBni8YyDwCg1DyV
Cd5rIhi026KFoFZEFjMOYvI=
=V9ov
-----END PGP SIGNATURE-----
From | Date | Subject | |
---|---|---|---|
Next Message | mroyce@gmail.com | 2005-03-24 03:47:43 | Re: timestamp precision - can I control precision at select time |
Previous Message | Gary Stainburn | 2005-03-23 23:25:14 | Re: best way to swap two records (computer details) |