title: Passing multiple values to a parameter of a function in SQL
body: <p>There is function <code>Getfunctionname(userid, startdate, enddate)</code> to return a table </p>
  
  <p>My question is can I pass a variable with multiple values?</p>
  
  <p>i.e. </p>
  
  <pre><code>getfunctionname(@userid, startdate, enddate)
  </code></pre>
  
  <p>Where the value of variable <code>@userid</code> is like </p>
  
  <pre><code>1
  2
  3
  4
  5
  </code></pre>
  
  <p>(actually using <code>split</code> function splitting the values from being <code>1,2,3,4,5</code> )</p>
  
  <p>If I can please let me know  </p>