SQL Flow Field Guide

= (String comparison or assignment)

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

compound assignment = (String comparison or assignment)

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 label or expression needs = (String comparison or assignment) to combine text values with a known NULL rule.

Test two values, an empty string, and NULL. Prefer CONCAT or an explicit conversion when the expression could mix types.

Check your work = (String comparison or assignment). The output of = (String comparison or assignment) matches the expected text and handles NULL as documented.

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