SQL Flow Field Guide

= (Equals)

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

compound assignment = (Equals)

What changes

Input
target value and an expression
Output or change
the same variable or column

Syntax at a glance

expression = expression

Work example

A filter needs = (Equals) to compare values with a stated boundary rule.

Test equal, lower, higher, and NULL values. Prefer the standard comparison spelling used by the project.

Check your work = (Equals). The boundary result for = (Equals) matches the written rule and NULL is handled separately.

Open Microsoft Learn for full syntax, permissions, and details for your version.