Sunday, March 6, 2011

Is T-SQL's CASE normal ("lazy") evaluation?

Is T-SQL's CASE lazy evaluation?

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

0 comments:

Post a Comment