In SQL Server I have written a stored procedure where I have declared an array like
declare @arr table (Position int, BTtype varchar(50))
and I have inserted values in to this array based on conditions my problem is I want to check like
for each(string type in string array(BT Type))
How do I check the same way in SQL?
For example I declare a local variable called type with datatype varchar
and then how do I check like the for each loop written above in SQL........?? I would like to know how we can perform for each iteration in SQL ?