求按时间进行数据查询的ACCESS SQL语句! select * from table1 where date='2008-10-29'select * from table1 where date between '2008-10-29' and '2008-11-29' 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 between #2008-10-29# and #2008-11-29# string sql1 = string.Format("select * from table1 where date='{0}'", TextBox1.Text.Trim());string sql2 = string.Format("select * from table1 where date between '{0}' and '{1}'", TextBox1.Text.Trim(), TextBox2.Text.Trim()); 注意数据库中的 adddate 是个日期/时间的格式, 而且是在ACCESS中 文本框中的日期这样取得 Textbox1.Text用ACCESS数据库,数据库的的搜索字段是adddate, 日期/时间的格式请大家再帮帮忙,谢谢 ACCESS时间类型是用#between #"+TextBox1.Text.Trim()+"# and #"+TextBox2.Text.Trim()+"#这种形式的 动态创建的Repeater为什么绑定数据只显示一条? 请js高手优化雪花特效 为什么存储过程在查询分析器中执行没问题,而在.net程序中却抱错呢?(50分) 十六进制转换 ?? 如何做一个定时在服务器段执行的服务? <%# 对ASP.NET中DataGrid控件使用的无耐 --请问大家是如何使用的 谢谢 分别用组件和代码联接数据库有什么区别? 奇怪的初学问题!关于输出DLL 想查询记录条数,出错????? 两个虚拟目录能共用一个Session! 本地可以运行,服务器报错 高分求解,VS2005网站其他页面突然不能使用其他页面的命名空间
string sql2 = string.Format("select * from table1 where date between '{0}' and '{1}'", TextBox1.Text.Trim(), TextBox2.Text.Trim());
between #"+TextBox1.Text.Trim()+"# and #"+TextBox2.Text.Trim()+"#
这种形式的