Re: last word in text

From: Gregory Seidman <gss+pg(at)cs(dot)brown(dot)edu>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: last word in text
Date: 2003-01-15 16:13:11
Message-ID: 20030115161309.GB3210@cs.brown.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ian Harding sez:
} create function lastword(varchar) returns varchar as '
} return [string range $1 [string last " " $1] end]
} ' language 'pltcl';

I don't seem to have pltcl available. In fact, all I have available is
plpgsql and sql. Can it be done in either of those languages?

} Ian Harding
--Greg

Browse pgsql-general by date

  From Date Subject
Next Message Ian Harding 2003-01-15 16:30:56 Re: last word in text
Previous Message Ian Harding 2003-01-15 16:01:37 Re: last word in text