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