原作者禁止转载,这里放个链接吧:
https://www.cnblogs.com/xunziji/p/6343891.html
最优解:
select isnull((select top(1) 1 from tableName where conditions), 0)
原作者禁止转载,这里放个链接吧:
https://www.cnblogs.com/xunziji/p/6343891.html
最优解:
select isnull((select top(1) 1 from tableName where conditions), 0)