怎么用2个datetimepicker查询时间段数据
str="select*fromFurn_InfowhereTimebetween'"+this.dateTimePicker1.Value.ToString("yyyy...
str="select * from Furn_Info where Time between '"
+ this.dateTimePicker1.Value.ToString("yyyy-MM-dd hh:mm:ss")
+ "' and '" +
this.dateTimePicker2.Value.ToString("yyyy-MM-dd hh:mm:ss")
+ "'"; 用的是oracle数据库。求改正,求代码 展开
+ this.dateTimePicker1.Value.ToString("yyyy-MM-dd hh:mm:ss")
+ "' and '" +
this.dateTimePicker2.Value.ToString("yyyy-MM-dd hh:mm:ss")
+ "'"; 用的是oracle数据库。求改正,求代码 展开
2个回答
展开全部
"select * from Furn_info where Time >= '" +
this.dateTimePicker1.Value.ToString("yyyy-MM-dd hh:mm:ss") +
"' and Time <= '" +
this.dateTimePicker2.Value.ToString("yyyy-MM-dd hh:mm:ss") +
"'";
this.dateTimePicker1.Value.ToString("yyyy-MM-dd hh:mm:ss") +
"' and Time <= '" +
this.dateTimePicker2.Value.ToString("yyyy-MM-dd hh:mm:ss") +
"'";
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询