Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
228 views
in Technique[技术] by (71.8m points)

database - Postgres does multiple select in a declare inisde function run in parallel?

delare
UserName text:=(select "UserName" from "Account" where "ID"=id);
Password text:=(select "Password" from "Account" where "ID"=id);
Name text:=(select "Name" from "Account" where "ID"=id);
begin
    --do something here
end

also is it ok to do this for the coding convenience and readability and access or should it be combined to single type.

question from:https://stackoverflow.com/questions/65947455/postgres-does-multiple-select-in-a-declare-inisde-function-run-in-parallel

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...