update 语句后面应该在哪里加where语句啊?急求
void __fastcall TForm1::Button1Click(TObject *Sender)
{
ADOQuery1->SQL->Text="Select gnum,gname,gcount,manufacturer from dbo.goods " ;
ADOQuery1->ExecSQL();
ADOQuery1->Active=true;
String strSQL="";
//strSQL="Select gnum from dbo.goods where gnum= '" + Edit1->Text + "'" ;
strSQL="Update dbo.goods set gcount = gcount + " + IntToStr(Edit2->Text.ToInt());
//strSQL="Update dbo.goods set gcount = gcount+ "+IntToStr(Edit2->Text.ToInt()) where gnum= '"+Edit->Text+"'";
ADOQuery1->SQL->Text=strSQL;
ADOQuery1->ExecSQL();
ADOQuery1->SQL->Text="Select gnum,gname,gcount,manufacturer from dbo.goods" ;
ADOQuery1->Active=true;
}