I have one requirement ,assign multiple values to single parameter to inset data.
select * from emp(employee table)
select * From test
Create proc inserttest(@Idno int)
as
begin
insert into test(id) values(@Idno)
end
declare @empno int
select @empno= empno from emp
exec inserttest @Idno=@empno
Only one record was inserted in test table while executing this procedure.
Q:I want to insert all the data in single execution.Could you please let me know how to insert.