我希望在存储过程中执行一个查询,该查询应循环处理所有数组值。
例如:
declare arrayStoreID={1001,2400,2001,5000}
for(int i=0;i<arrayStoreID.length;i++)
{
select
col_name1,col_name2
into
@temp_table
from
Table_Name
Where
storeID=arrayStoreID[i]
}
我希望像上面那样表现。谢谢。
I want to perform like above. Thanks