Named regions

You can define a named region—a block of SQL code that you can collapse or expand in SQL Editor. Nested regions are also supported.

Named regions use the following syntax.

--region name
<code>
--endregion comment

The following table describes the parameters.

Parameter Description
name (Optional) The region name.
comment (Optional) A comment for the region.

Named region example