var date1,date2:TDateTime;……Date1 := EncodeDate(year, month, 1);Date2 := EncodeDate(year, month, 31);query.SQL.Add('select * from sxdj where sxsj between date1 and date2');这样为什么不可以?然后我试了一下这种query.SQL.Add('select * from sxdj where sxsj between :date1 and :date2);parameters.parambyname('date1).value:=EncodeDate(year, month, 1);parameters.parambyname('date2').value:=EncodeDate(year, month, 31);error :object or class type requiredmissing operator or semicolon
2 回答
- 2 回答
- 0 关注
- 609 浏览
添加回答
举报
0/150
提交
取消