May 2019
Intermediate to advanced
600 pages
20h 46m
English
Conditional statements are usually part of flow-control statements, which also include iterations.
While iterating is not directly supported by psql, a similar effect can be achieved in other ways, for instance:
SELECT /* add a termination condition as appropriate */ AS do_loop\gset\if do_loop\ir file.sql\endif
Read now
Unlock full access