Execute function with multiple values in single parameter
I have SQL function which takes parameter as BIGINT like below: FUNCTION [dbo].[fn_doc] ( @DocID bigint ) I want to pass multiple doc ID and want to get results. For which I'm doing like this: declare @DocID bigint SET @DocID = (2949146,2949148,2949149,14016926,14025278,14016928,14016928,14025280,14025280) select * from [fn_doc] (@DocID) My question is, how to execute a function with multiple values to single parameter in this case?
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.