想实现一个表的数据自动保存到另一个表中,大家看看我这哪出错了
void __fastcall TBasicfact::btSaveClick(TObject *Sender)
{
Query1->Close();
Query2->Close();
Query1->SQL->Clear();
Query2->SQL->Clear();
Query1->Open();
Query2->Open();
Query2->SQL->Add("INSERT INTO Table2");
Query2->SQL->Add("SELECT * FROM Table1 " )
Query2->Close();
Query1->Close();
}
//---------------------------------------
[C++ Error] Basicfacts.cpp(72): E2379 Statement missing ;
[解决办法]
[C++ Error] Basicfacts.cpp(72): E2379 Statement missing ;
lz你在1楼和4楼的代码 都少两个" ; "
Query2->SQL->Add("SELECT * FROM Table1 " ) ;