PL/pgSQL IF Statement

PHOTO EMBED

Thu Aug 12 2021 16:50:49 GMT+0000 (Coordinated Universal Time)

Saved by @mvieira

if condition then
   statements;
end if;
Code language: PostgreSQL SQL dialect and PL/pgSQL (pgsql)
content_copyCOPY

https://www.postgresqltutorial.com/plpgsql-if-else-statements/