七
七年之痒
Unregistered / Unconfirmed
GUEST, unregistred user!
SQLQuery1->Close();
SQLQuery1->SQL->Clear();
SQLQuery1->SQL->Add("select gh,rq,oper,ptable,pkey from log_view where
trunc(rq)>=:rq1 and trunc(rq)<=:rq2 and oper like per"
SQLQuery1->Params->ParamByName("rq1"->Value=DateTimePicker1->Date;
SQLQuery1->Params->ParamByName("rq2"->Value=DateTimePicker2->Date;
SQLQuery1->Open();
为什么会报错:DBX错误:Invalid Field Type 呢?我的RQ字段的数据类型是DATE没有错呀
SQLQuery1->SQL->Clear();
SQLQuery1->SQL->Add("select gh,rq,oper,ptable,pkey from log_view where
trunc(rq)>=:rq1 and trunc(rq)<=:rq2 and oper like per"
SQLQuery1->Params->ParamByName("rq1"->Value=DateTimePicker1->Date;
SQLQuery1->Params->ParamByName("rq2"->Value=DateTimePicker2->Date;
SQLQuery1->Open();
为什么会报错:DBX错误:Invalid Field Type 呢?我的RQ字段的数据类型是DATE没有错呀