第42.1节:CHOOSE
版本 ≥ SQL Server 2012
从值列表中返回指定索引处的项目。如果索引超出值的范围,则返回NULL。
参数:
SELECT CHOOSE (1, \’apples\’, \’pears\’, \’oranges\’, \’bananas\’) AS chosen_result
| apples |
版本 ≥ SQL Server 2012
从值列表中返回指定索引处的项目。如果索引超出值的范围,则返回NULL。
SELECT CHOOSE (1, \’apples\’, \’pears\’, \’oranges\’, \’bananas\’) AS chosen_result
| apples |