select fj_id '字段1',station '字段2',send_mode '字段3',name '字段4',
weight '字段5'
from fj_lr where 时间字段>=cast(:date1 as datetime) and 时间字段<=cast(:date2 as datetime)date1,date2 看不懂什么意识。
weight '字段5'
from fj_lr where 时间字段>=cast(:date1 as datetime) and 时间字段<=cast(:date2 as datetime)date1,date2 看不懂什么意识。
代码里应该会传递值过来的
注意点:
如果Date1与Date2是时间日期型时,即2007-1-1 01:02:03时
需要将Adoquery.ParamCheck:=False,否则Ado将会将02或03看成参数