Question about stored procedures

Поиск
Список
Период
Сортировка
От Greg
Тема Question about stored procedures
Дата
Msg-id 000801c68dfe$50e3bdf0$f2ab39d0$@co.za
обсуждение исходный текст
Ответы Re: Question about stored procedures  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Список pgsql-novice

From what I understand, a stored procedure in pgSQL is actually a function that returns rows? Am I correct?

 Can somebody show me the syntax for a basic stored procedure that takes an argument?

 

i.e I would like the query to be “select name, email from users where userid = @userid”

 

Sorry for the easy question but I looked at the docs and just can’t seem to find what I’m looking for…

 

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

Предыдущее
От: Philip Hallstrom
Дата:
Сообщение: Re: uh-oh
Следующее
От: "Greg"
Дата:
Сообщение: Easy SQL Question