| Operator ("M" Reference)

[This content is no longer valid. For the latest information on "M", "Quadrant", SQL Server Modeling Services, and the Repository, see the Model Citizen blog.]

The | operator is a binary operator that functions either as a bitwise OR operator or as a union operator.

Operator Description

The binary | operator is predefined for the Byte and Binary types. When used with these types, the | operator computes the bitwise OR of its operands. The operands are implicitly converted to the same length. The smaller operand is padded with zeros on the left.

The binary | operator is also predefined for collections. When used with collections, the | operator creates a single collection that is the union of the collection operands.