传递arraylist作为参数 [英] Passing arraylist as parameters

查看:81
本文介绍了传递arraylist作为参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我需要将数组值传递给storeprocedure
正在将二进制值存储在每个字节数组的字节数组ecah值中
我已经根据类似数据类型(二进制)的max_cols值动态创建了一个表 基于最大值表创建,我需要传递数组
在运行时如何循环和传递参数

喜欢



i need to pass the arrays values to storeprocedure
am storing the binary values in byte array ecah value in each byte array
i have created a table dynamically based on the max_cols values of similiar datatype(binary)
based on the max values tables is created i need to pass arrays
at runtime how to loop and pass parameters

like

if 5 cols then
sp_name(arrlist[0],arrlist[1].....)




guide me how i can do that, any other process to achive this 

Thanks inadvance

推荐答案

一种可能是使用表值参数,请参见: ^ ]:rolleyes:
One possibility is to use table valued parameters, see: How to pass multiple records to a Stored Procedure[^] :rolleyes:


这篇关于传递arraylist作为参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆