sql server case嵌套报错

报错如下:
Msg 8180, Level 16, State 1, Line 1
Statement(s) could not be prepared.
Msg 125, Level 15, State 4, Line 1
Case expressions may only be nested to level 10.

原因:
If you are using linked servers, your case expressions cannot have more than 10 items in them, nested or not.

你可能感兴趣的:(SQL Server)