13,826
社区成员
发帖
与我相关
我的任务
分享
this->ADOQuery1->Close();
this->ADOQuery1->SQL->Text="insert into temp(str1) values(:p1)";
this->ADOQuery1->Parameters->ParamByName("p1")->Value=yy;
this->ADOQuery1->ExecSQL();
用参数方式赋值ClientDataSet1->Params->ParamByName("p1")->Value="ww";
长度没试过,真不知道,你可以试试 ClientDataSet1->Close();
ClientDataSet1->CommandText = "insert into temp(str1) values(:p1)";
ClientDataSet1->ParamByName("p1")->Value="www";
ClientDataSet1->Execute();