Re: last word in text - Mailing list pgsql-general

From Gregory Seidman
Subject Re: last word in text
Date
Msg-id 20030115161309.GB3210@cs.brown.edu
Whole thread Raw
In response to last word in text  (Gregory Seidman <gss+pg@cs.brown.edu>)
List 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


pgsql-general by date:

Previous
From: "Ian Harding"
Date:
Subject: Re: last word in text
Next
From: "Ian Harding"
Date:
Subject: Re: last word in text