execute sql in a function?

Поиск
Список
Период
Сортировка
От Jiri D. Hoogeveen
Тема execute sql in a function?
Дата
Msg-id 3B5457E1.9020605@pro.nl
обсуждение исходный текст
Список pgsql-novice
Hello,

Is't possible to do something like this in a function witj the language
plpgsql?

declare
maxid int4;
begin
maxid := select max(id) from test;
return maxid + 10;

Grtz, Jiri


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

Предыдущее
От: Jeroen Heijmans
Дата:
Сообщение: Table type attributes
Следующее
От: "Todd T. Fries"
Дата:
Сообщение: Re: Serial field