Re: Is there a GoTo ?

2020-01-16 Thread Justin
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

Re: Is there a GoTo ?

2020-01-16 Thread Adrian Klaver
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$$

Re: Is there a GoTo ?

2020-01-16 Thread Pavel Stehule
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.

Is there a GoTo ?

2020-01-16 Thread İlyas Derse
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