如题
解决方案 »
- 求救 table1:cannot perform this operation on a closed dataset!
- SendMessage(HWndCalculator, WM_CLOSE, 0, 0);我理解不了,请指教!!!!!
- 获得BMP图片信息的开头指针,如何获得图片的大小信息??
- 如何得到半年或一个月后的日期?
- fastreport如何实现主明细报表打完主表换页打细表
- ★★★★★★★★cg1120散分,顺便做个调查!★★★★★★★★
- 如何控制小数的位数?
- 后台数据库为Paradox,前台用Dbgrid显示,怎么才能手动控制纪录在Dbgrid中显示的位置
- TFileStream对读入的文件大小有限制,如何突破?
- 三层中从服务端取得信息的方法
- Word2000的菜单是怎么做的
- TMS的dbAdvStringGrid怎么让整行的颜色随着条件而变色?怎么让3个单元格同时变色?
select datediff(mm,'2002-02-01','2003-02-01')ACCESS
select datediff('m',#2002-02-01#,#2003-02-01#)
在ACCESS中日期是用#号括起来的
begin
ado_pub1.SQL.Clear;
ado_pub1.SQL.Add('select * from v_xs');
ado_pub1.SQL.Add('where datediff(day,:date,x_x_date)<=:d_count');
ado_pub1.Parameters.ParamByName('date').Value:=date;
ado_pub1.Parameters.ParamByName('d_count').Value:=ado_pub.fieldbyname('d_count').AsInteger;
ado_pub1.Open;
if ado_pub1.RecordCount<>0 then
showmessage('近日有该交纳管理费的墓穴,请您留意续费通知!');
ado_pub1.Close;
end;那上面的代码当执行到ado_pub1.open时,哪里错了?
select datediff('m',#2002-02-01#,#2003-02-01#)不行啊
day加上单引号
select * from v_xs where datediff(''day'',#'2004-11-12'#,#'2004-11-12b'#)<=1
提示操作符丢失,各位帮我看看