现在有一个这样的问题:怎样把时间格式中的hh:mm:ss里的小时给单独拿出来和其他的小时进行比较我在SQL里写了存储过程如下:
CREATE proc delete_member_statusas
delete from member_status where function_no in ( select a.function_no from member_status as a inner join project_info as b on a.function_no=b.function_no and datediff(hour, a.login_time,getdate()) >b.over_time)GO
我想在DELPHI里面调用这个过程就必须传参数~~~怎么办?
CREATE proc delete_member_statusas
delete from member_status where function_no in ( select a.function_no from member_status as a inner join project_info as b on a.function_no=b.function_no and datediff(hour, a.login_time,getdate()) >b.over_time)GO
我想在DELPHI里面调用这个过程就必须传参数~~~怎么办?
原型:fuction decodetime(time:Tdatetime;var hour,min,sec,msec:word)
其中的hour 就是小时的了~
小女子有一个问题想请教。我用access做了一个表,用delphi7编的界面,想用一个button实现对表的访问,用的是adoquery, adoconnection, datasource,并设置了string.但在运行时,有对话框提示:missing sql property.不知为何,应如何处理呢?谢谢。还有,就是怎样在这里发一个独立的贴呢?
begin
with StoredProc do
begin
if active then active:=false;
ParamByName('@function_no').Text:='';
ParamByName('@login_time').AsDateTime:=????????????????? ExecProc; end;请问以上打了问号处具体应该怎么写~~~~~~~~~~~~~~`拜谢了~~~~~~~~~~~``
这可能不是你差属性.而是你数据控件没有设好.
你再检查检查.