string functions - Mailing list pgsql-novice

From Michael Fuchs
Subject string functions
Date
Msg-id 026401c210b2$6cb3c8e0$211a21d5@fubox
Whole thread Raw
List pgsql-novice
hi there!
i've got some email adresses in my db, but i just want everything before
the '@' to be returned.
example:

firstname.lastname@mydomain.tld -> firstname.lastname

what must my select statement look like?

i tried something like
"SELECT TRIM(leading '@' from email) FROM ..." needless to say that this
doesn't work.

thanks in advance!

PS: looking at "user-7.2-A4.pdf" and "user-7.2-US.pdf" in
ftp://ftp.at.postgresql.org/db/www.postgresql.org/pub/doc/current/ i had
to find out that many examples cannot be read because of too narrow
columns. are there other versions of these docs available (html, rtf,
...)?

--michael


pgsql-novice by date:

Previous
From: "Joshua b. Jore"
Date:
Subject: Re: string functions
Next
From: "Patrick Hatcher"
Date:
Subject: View management