Tdatetime字段
有一函数如下:
procedure TFormFeeInFromBank.setStartDate(ADatetime:TDatetime;);
begin
with DataModuleTzManage.QueryTemp do
begin
close;
sql.clear;
sql.text:='update TableName set startDate=:SDate '
paramByName('sDate').asDateTime :=ADatetime;
paramByName('OID').asstring :=Trim(VehicleOID);
execsql;
end;
end;
现想置数据库(Oracle)中此表的StartDate字段的值为Null,调用过程如下:
setStartDate(Null);//出现类型转换错误(编译通过,运行时出错),如何解决