入库日期的参数的值通过time函数获得。对了,我是paradox数据库,可能不支持getdate函数
query2.ParamByName('rkdate').AsDateTime:=time;