今天一不小心差点着了道儿。:(
ADOQuery1->Close();
ADOQuery1->SQL->Text = "select * from orders where CustomerId = :AParam";
ADOQuery1->Parameters->ParseSQL(ADOQuery1->SQL->Text, true); //这里不能用prepared=true,无效
ADOQuery1->Parameters->ParamByName("AParam")->Value = "TOMSP";
ADOQuery1->Open();