读书人

winform中的查询有关问题

发布时间: 2012-04-07 17:31:52 作者: rapoo

winform中的查询问题
我现在有一个下拉框,一个文本框,一个日期控件,我要怎么联合三个控件来完成值的查询?
求高手讲解~~

[解决办法]
类似
"select * from xxx where xxx='"+combox1.Text+"' and xxxx='"+textbox1.Text+"' and xxxx ="+datetimepicker1.Value.ToString();
[解决办法]

C# code
   "select * from *** where **="+combox1.text+" and ***="+textbox.text+" and ***="+datetimepicker1.value.tostring()+"" 

读书人网 >C#

热点推荐