我用的是Parodox数据库,可以对其中的非日期型数据库查询,但是对于日期型数据库,却无能为力了,无论日期字段的数据格式如何。我用的查询语句是:select 字段1 where 日期字段 between
datetimepicker1.date and datetimepicker2.date(数据库中日期字段为日期date型)。
datetimepicker1.date and datetimepicker2.date(数据库中日期字段为日期date型)。
解决方案 »
- ReportBuilder 打印国标码高度太高了。怎么调。在哪里调。
- 在线等___急!!!
- 网上交易的项目难道都是骗局吗?我该怎么做?
- 高分:用FastReport或都RBuilder打印图片的问题
- 征求药店管理系统(符合GSP达标)的需求!以及药品等基本属性!(在线等待!)
- 关于adoquery.clone
- 关于NMFTP控件的问题!
- 谁可以告诉我这个算法?
- 各位大侠:DEPHI能不能进行DIRECTSHOW开发?如果不能,且不令我失望??
- 怎样使用ODBC
- 有哪位大哥知道idicmpclient控件的具体使用方法??~~不好意思分数少了点了
- 关于 http://community.csdn.net/Expert/topic/4818/4818760.xml?temp=.3169824
begin
with ADOQuery1 do
begin
close;
sql.Clear;
sql.Add('select * from tablename where rq between :#start and :#end');
Parameters.ParamByName('#start').Value := FormatDateTime('yyyy-mm-dd',DateTimePicker1.Date);
Parameters.ParamByName('#end').Value := FormatDateTime('yyyy-mm-dd',DateTimePicker2.Date);
Open;
end;
end;