Help with quotes in plpgsql

Поиск
Список
Период
Сортировка
How should this be properly quoted

create or replace function test(integer) returns setof text as $$
declare  a record;
begin  select into a now() - interval '$1 day';  return next a;  return;
end
$$ language 'plpgsql';

I'm not having a lot of luck
Thanks
Richard


В списке pgsql-sql по дате отправления:

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: Desc table
Следующее
От: "Jim Buttafuoco"
Дата:
Сообщение: Re: Help with quotes in plpgsql