How do I replace select ... into commands?

Поиск
Список
Период
Сортировка
От Richard Sydney-Smith
Тема How do I replace select ... into commands?
Дата
Msg-id 001501c378d6$3aa78f20$df6c32d2@athlon2000
обсуждение исходный текст
Ответы Re: How do I replace select ... into commands?
Список pgsql-sql
I have a number of sybase procedures in which I use something like
 
declare
mx : integer;
begin
select max(field) from table into mx;
return mx;
end;
 
Postgresql is telling me that select...into has not been implemented yet. what is the best way to perform this action with the commands offered in plpgsql?
 
much thanks for the earlier help.
 
Sincerely
Richard Sydney-Smith
 

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

Предыдущее
От: Tomasz Myrta
Дата:
Сообщение: Re: MD5 function is not available ?
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: How do I replace select ... into commands?