熟悉BCB操纵oracle中Date字段的请进.....
代码如下
msgid字段是个整形,sendtime字段是Date型
TDateTime dt
DM1->DQuery->SQL->Add("Insert into BaseMsg values (:msgid,:sendtime)");
DM1->DQuery->ParamByName("msgid")->AsInteger=msgid;
DM1->DQuery->ParamByName("sendtime")->AsDate=dt.CurrentDateTime();
DM1->DQuery->ExecSQL();
但总是报错:"Numeric value out of range"