tags:

views:

427

answers:

1

Is T-SQL's CASE lazy evaluation?

+4  A: 

Yes, it evaluates the WHENs in order until it finds one that is true, and doesn't evaluate the remaining WHENs.

Tmdean