execute sql in a function? - Mailing list pgsql-novice

From Jiri D. Hoogeveen
Subject execute sql in a function?
Date
Msg-id 3B5457E1.9020605@pro.nl
Whole thread Raw
List 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 by date:

Previous
From: Jeroen Heijmans
Date:
Subject: Table type attributes
Next
From: "Todd T. Fries"
Date:
Subject: Re: Serial field