On Aug 15, 2:14 pm, Dale <harris...@xxxxxxxxxxxx> wrote: > Hi, > > When ever I try and call the PERFORM statement I get: > ERROR: syntax error at or near "PERFORM" > even when I try executing something basic: PERFORM (2 + 3); > > Any ideas please? > > Dale. I found my problem. Unfortunately PERFORM can only be used within a "LANGUAGE plpgsql" script.