想查询表中日期介于*与*之间的数据,代码如下
OdbcDataAdapter da = new OdbcDataAdapter("select * from inware where 操作时间 between " +textBox1.Text + " and "+textBox2.Text+"", odbccon);
操作时间 数据类型为datetime(8)
textBox1.text为2009-5-1
textBox2.text为2009-5-30
该如何写?
OdbcDataAdapter da = new OdbcDataAdapter("select * from inware where 操作时间 between " +textBox1.Text + " and "+textBox2.Text+"", odbccon);
操作时间 数据类型为datetime(8)
textBox1.text为2009-5-1
textBox2.text为2009-5-30
该如何写?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货