PREPARE function

Поиск
Список
Период
Сортировка
От ionFreeman@gmail.com (Ion Chalmers Freeman)
Тема PREPARE function
Дата
Msg-id e1fe5cb7.0411021025.3cdb496b@posting.google.com
обсуждение исходный текст
Ответы Re: PREPARE function  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-novice
So, I wrote a little function. Yay! I went to the dbExperts prompt
(I'm on Windows XP) and created it. Yay! Now, I'd like to run it.
> \i pg_MyFile.sql
this bit works great. But, the next bit, I'm having a problem with.
Say my function name was redefeat and it took one varchar.
> prepare redefeat(varchar);
doesn't work; nor does
> prepare vote (varchar) as redefeat;
or
> prepare(execute redefeat('Bush');
What is the syntax for prepare? The man page is not sufficiently clear
for me. Here it is:
http://www.postgresql.org/docs/7.4/interactive/sql-prepare.html
Please help! What would the syntax be?
Ion

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

Предыдущее
От: stig erikson
Дата:
Сообщение: Re: Importing Microsoft Sql Server 2000
Следующее
От: "Lars Eckberg"
Дата:
Сообщение: function to update different tables