gpt4 book ai didi

sql-server - SQL CASE [列] WHEN IN ('case1' , 'case2' ) THEN 'oops' END?

转载 作者:行者123 更新时间:2023-12-02 10:34:05 27 4
gpt4 key购买 nike

有没有办法检查数组中的 CASE:

SELECT CASE [Option] WHEN IN (1, 3, 99) THEN 'Wrong option' ELSE 'You go!' END

最佳答案

SELECT CASE WHEN [Option] IN (1, 3, 99) THEN 'Wrong option' ELSE 'You go' END

关于sql-server - SQL CASE [列] WHEN IN ('case1' , 'case2' ) THEN 'oops' END?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2004147/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com