如何将列表框内容存储到数据库表中 [英] how to store the list box content in to the database table

查看:87
本文介绍了如何将列表框内容存储到数据库表中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我想将列表框项目存储到mysql中的表中,对此的查询是什么

重播我

问候

ginnas

hello

i wanted to store listbox items in to the table in mysql what is the query for that

replay me

regards

ginnas

推荐答案

希望此链接可以解决您的问题.
http://msdn.microsoft.com/zh-cn/library/33y2221y%28v=vs.71%29.aspx[^]
Hope this link will solve your problem.
http://msdn.microsoft.com/en-us/library/33y2221y%28v=vs.71%29.aspx[^]


让我们说我想将listBox1项存储到DB

Let''s Say that i want to store the listBox1 items into DB

foreach (var item in listBox1.Items)
            {
                //replace this line with your insert code
                MessageBox.Show(item.ToString());
            }




A.Mandour,




A.Mandour,


这篇关于如何将列表框内容存储到数据库表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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