"copy from" in "create function"

Поиск
Список
Период
Сортировка
От Gifford Hesketh
Тема "copy from" in "create function"
Дата
Msg-id 4f6940a604102015034e5560bb@mail.gmail.com
обсуждение исходный текст
Ответы Re: "copy from" in "create function"
Список pgsql-sql
Am I forgetting some limitation ?  I get "ERROR:  syntax error at or
near "$1" at character 22" with this:

CREATE FUNCTION public.fn_b_import( text ) RETURNS void AS 
'
COPY b_import FROM $1 ;
'
LANGUAGE 'sql' STABLE;


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

Предыдущее
От: Mike Rylander
Дата:
Сообщение: Re: sql
Следующее
От: "Davide Negri"
Дата:
Сообщение: Question on the 8.0Beta Version