PLPGSQL: DECLARE more variable with same type at once

Started by Durumdaraabout 6 years ago3 messagesgeneral
Jump to latest
#1Durumdara
durumdara@gmail.com

Hello!

I want to ask how to shortening code?

Delta double precision;
UjErtek double precision;
UjDErtek double precision;

For example - but this makes an error:
Delta, UjErtek, UjDErtek double precision;

Do you know any other form?

Thank you for it!

Best regards
dd

#2David G. Johnston
david.g.johnston@gmail.com
In reply to: Durumdara (#1)
Re: PLPGSQL: DECLARE more variable with same type at once

On Wednesday, March 25, 2020, Durumdara <durumdara@gmail.com> wrote:

Hello!

I want to ask how to shortening code?

Delta double precision;
UjErtek double precision;
UjDErtek double precision;

For example - but this makes an error:
Delta, UjErtek, UjDErtek double precision;

Do you know any other form?

No other form is specified in the documentation.

David J.

#3Pavel Stehule
pavel.stehule@gmail.com
In reply to: Durumdara (#1)
Re: PLPGSQL: DECLARE more variable with same type at once

st 25. 3. 2020 v 13:53 odesílatel Durumdara <durumdara@gmail.com> napsal:

Hello!

I want to ask how to shortening code?

Delta double precision;
UjErtek double precision;
UjDErtek double precision;

For example - but this makes an error:
Delta, UjErtek, UjDErtek double precision;

Do you know any other form?

Short form not supported, because it is not supported in PLpgSQL origin -
PL/SQL

Regards

Pavel

Show quoted text

Thank you for it!

Best regards
dd