SQL Server 2008 Question:

What is Compound Operators?

Tweet Share WhatsApp

Answer:

Compound operators feature is enhanced in SQL Server 2008. They are like compound operators in languages like C, C++ etc.

Compound operators are a combination of operator with another operator.

The compound assignment operators are - arithmetic operators - +=,-=,*=, /=, %=, bitwise operators -&=, ^=,|=

Declare @number int
Set @number = 10
--using Compound assignment operator
Set @number+=200
Select @number as MyResult
Go

Download MS SQL Server 2008 PDF Read All 27 MS SQL Server 2008 Questions
Previous QuestionNext Question
Explain filtered indexes benefits?Do you know SQL Server 2008 introduces automatic auditing?