如何在SP中传递多个DepartmentId?

时间:2016-02-16 11:52:33

标签: sql-server stored-procedures

如何在SP中传递多个 for (int i = 0; i < len; ++i) { FileStatus file = files[i]; if (!file.isDir()) { newFiles.add(file);

DepartmentId

2 个答案:

答案 0 :(得分:0)

答案 1 :(得分:0)

谢谢大家终于改变了这个表格

Create Procedure spGetEmployeesByID
@DepartmentId int
as
Begin
  Select Name from tblEmployee Where DepartmentId IN (1 ,  3) 
End

Execute spGetEmployeesByID @DepartmentId = 1