On Thu, Mar 02, 2006 at 02:24:09PM +1100, Shuying Wang wrote:
> I'm trying to write a function that would the results of select 'foo'.
> How do I escape strings within a create function block?
It's not clear what you're trying to do -- could you explain a
little more? Does the following example help?
CREATE FUNCTION func() RETURNS text AS '
SELECT ''foo''::text
' LANGUAGE sql IMMUTABLE;
--
Michael Fuhr