Passing parameter to SQL select statement IN clause acts weird.

前端 未结 4 1269
暗喜
暗喜 2021-01-21 11:38

I\'ve got the following query that returns 2 records (in DataSet\'s query builder)

SELECT        EmpID, Name, id
FROM          Users
WHERE        (CAST(id AS Var         


        
4条回答
  •  孤街浪徒
    2021-01-21 11:57

    ('5688','5689') is an array of values.

    Defining String param = "'5688','5689'"; and using it as (@param) makes ('5688','5689') a string. Which wont work.

提交回复
热议问题