query1.SQL.Add('select zhonglei from execuse where empid=:empid
and date1>=:startdate and date2<=:enddate');
query1.Params[0].AsString:=edit5.Text;
query1.Params[1].AsDateTime:=tt;
query1.Params[2].AsDateTime:=tt;
query1.Prepare;
query1.Open;
and date1>=:startdate and date2<=:enddate');
query1.Params[0].AsString:=edit5.Text;
query1.Params[1].AsDateTime:=tt;
query1.Params[2].AsDateTime:=tt;
query1.Prepare;
query1.Open;
解决方案 »
- 求救,DevExpress控件包问题,ExpressEditorsLibrary 5.17中的控件与dxNavBar控件冲突问题
- 请问这是什么问题:Variant array index of out of bounds
- 如何才能在FormShow中关闭正在启动的窗体,而不是关闭整个程序?
- 年和期是两个字段,如何用SQL取一期间呢?
- 谁能作答:分布式与非分布式有什么本质区别,如何理解?
- 我想学delphi 买了很多书,发觉都不是讲得很系统,大家可不可以推荐好书?
- 动态查询oracle中的数据,如何用三层结构来搭建。
- 禁止使用Alt+F4键关闭窗口。
- 菜鸟发问,Delphi中inherited是干嘛的?
- 紧急!!!解决256的限制的方案!!!
- 关于ADOQuery的问题
- 我做了一个NT SERVRES的应用程序,在本机上使用一切正常,在另一台机器上使用DCOMConnection连接,当设置属性connected为true时发现提示
and :date1>=startdate and :date2<=enddate');
->>
query1.SQL.Add('select zhonglei from execuse where empid=:empid
and startdate<=:date1 and enddate>=:date2');
select * from table where sysdate>create_date and sysdate < update_date
但是delphi就是不行
改其他試試
应为:
query1.SQL.Add('select zhonglei from execuse where empid=:empid
and startdate<=:date1 and enddate>=:date2');