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
2008-12-10 22:47:40