Delphi 诡异的现象
作者:互联网
Delphi XE6 + sql2005express
with adork do
begin
sql.Clear;
sql.Add('select sum(js) as sl,sum(jz) as zl from storage where sh=1 and rkdate <= '''+bbdate+''' and scnd='''+nd+'''');
open;
end;
bbdate为一个日期变量,bbdate:=2021-12-31时,程序正常,数据正常,但当bbdate:=2022-01-01时,程序出错
在sqlserver中手动输入时,能够查询到数据到
百度也没有查到相关问题,完全蒙了。
标签:诡异,01,Delphi,程序,现象,sql,sum,bbdate 来源: https://blog.csdn.net/weixin_45755495/article/details/122275640