如何使用数组函数更新数据库表? [英] How to update database table using array function?

查看:65
本文介绍了如何使用数组函数更新数据库表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

please help me to do this..because im not that much familier with array





谢谢

121



thanks
121

推荐答案

你好121,



你可以传递数组值以逗号分隔的形式,然后在后端(可能是存储过程)拆分这些值。
Hi 121,

You can pass the array values in comma separated form, then split those values at backend(probably stored procedure).


string[] _elements = { "one", "two", "three" };







foreach (string element in test.Elements)
    {
       //update query
    }


这篇关于如何使用数组函数更新数据库表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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