TSQLQueryのSQLConnectionにはTSQLConnectionをセット
void __fastcall TForm1::Button2Click(TObject *Sender)
{
String query="insert into table_name(name,text) values("あああ","てすと");
SQLQuery1->SQL->Text=query;
SQLQuery1->ExecSQL(true);
}

コメント