I have values in temp table like this
ID
1
2
3
but know from employee table, i need to select values from temp table
declare @mStrvalue as varchar(100)
select @mStrvalue =IDS from Temp_ID
select * from employee where employee.emp_ID= @mStrvalue
Right now this binding gives me only one string value, in fact there is data for all identifiers
Is there anything wrong with the syntax I'm going to, pls let me know.
thnkas prince
source
share