Hi İlyas
As noted by other there is no GOTO
you can move the goto code into the else statement
or move that code into a new function call and return that function
or just return null in the else if that is all the it is doing
CREATE OR REPLACE FUNCTION test(i integer) RETURNS integer AS
$$BE
On 1/16/20 2:48 AM, İlyas Derse wrote:
In this function I have to GOTO to a label1, but GOTO keyword is not
working, can you please help me in getting the way from which I am able
to jump from a particular code to label.
Thanks...
|CREATEORREPLACE FUNCTIONtest(i integer)RETURNS integer
AS$$
Hi
čt 16. 1. 2020 v 11:53 odesílatel İlyas Derse napsal:
> In this function I have to GOTO to a label1, but GOTO keyword is not
> working, can you please help me in getting the way from which I am able to
> jump from a particular code to label.
> Thanks...
>
no, plpgsql has not GOTO statement.
In this function I have to GOTO to a label1, but GOTO keyword is not
working, can you please help me in getting the way from which I am able to
jump from a particular code to label.
Thanks...
CREATE OR REPLACE FUNCTION test(i integer) RETURNS integer AS
$$BEGINIF i<0 THEN RETURN i + 1;ELSE
GOTO