• declare variables used in the function body.

  • to_euros_rate numeric(16, 6): Declares a variable to_euros_rate.

  • select ...: Run a query to look up the conversion rate for euros.

  • into to_euros_rate: Extension of select to get query results into variables. Only works for a single-row result.