在数据库中插入值 [英] inserting values in the database

查看:82
本文介绍了在数据库中插入值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我可以通过数组的值更新表的列吗?

hello,
Can I update a column of a table by the values of an array?

推荐答案


我不认为您可以在没有ID的情况下使用数组更新表值.对于ID,您可以使用HashTable(键和值对).这将帮助您仅更新具有唯一ID的那些记录.
无论如何,请查看以下内容:
使用SqlDataAdapter更新表 [
Hi,
I don''t think so that you can update a table value with an array without having ID. For ID you can use HashTable(Key & Value pair). It will help you to update only those record which is having an unique ID.
Anyway check this out:
Update table using SqlDataAdapter[^]

--Amit


您的问题不是很清楚,但是可以.
只需使用数组中的特定索引选择值,然后将其保存到数据库.
You question is not very clear but, yes, you can.
Just select the value using the particular index in the array and then save it to the database.


这篇关于在数据库中插入值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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