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