how to create stored porcedure using in clause sqlserver
mycode
create proc getemp(@ename varchar(25))
as
begin
select * from emp where ename in(@ename)
end
go
exec getemp 'aa','bb'
sqlserver showing error two many parametr passed
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Prasham SabadraPosted Jun 1, 2016, 1:51 AM
kumar yogaPosted Jun 3, 2016, 12:25 AM
Raja TPosted Jun 2, 2016, 9:18 AM
Avikshith AradhyaPosted Jun 1, 2016, 5:14 AM
Akshay PhadkePosted Jun 1, 2016, 3:40 AM