c++ builder adoquery sql语句的动态增加

void __fastcall TForm1::Button4Click(TObject *Sender)
{
  ADOQuery1-> Close();
  ADOQuery1-> SQL-> Clear();
  ADOQuery1->SQL->Add("Insert into CJB(Number,XM,XH,SX,YW,YY) Values(01,02,03,04,05,06) ") ;
  ADOQuery1-> ExecSQL();
}
posted @ 2011-04-22 08:46  瓜蛋  阅读(806)  评论(0编辑  收藏  举报