输入的日期是:·起始日期 2008-5-26 ·结束日期 2008-7-1
支付网关 充值帐号 交易时间
移动 123 2008-5-9
联通 111 2008-5-28
移动 222 2008-6-12
移动 222 2008-6-12
String date1="2008-5-26";
string date2="2008-7-1";
查询语句是:"select * from Date where Date between '"+date1+"' and '"+date2+"'";
支付网关 充值帐号 交易时间
移动 123 2008-5-9
联通 111 2008-5-28
移动 222 2008-6-12
移动 222 2008-6-12
String date1="2008-5-26";
string date2="2008-7-1";
查询语句是:"select * from Date where Date between '"+date1+"' and '"+date2+"'";
我经常用 datediff
不要在表中出现o(∩_∩)o...
菜鸟顶顶。。
你的表名和列名命名太不规范了,