我修改完数据,但DBGRID里没显示出我修改完的结构,请问怎么刷新数据
adoquery2.Close;
adoquery2.SQL.Clear;
adoquery2.SQL.add('update T_teacher set Tdirection='''+edit1.Text+'''');
adoquery2.SQL.add('update T_teacher set Tsort='''+edit2.Text+'''');
adoquery2.SQL.add('update T_teacher set Tdoctor='''+edit3.Text+'''');
adoquery2.SQL.add('update T_teacher set Tmaster='''+edit5.Text+'''');
adoquery2.SQL.add('update T_teacher set Tdate='''+edit4.Text+'''');
adoquery2.SQL.Add('select T_teacher.* from T_teacher,T_member where T_teacher.Tmcode=T_member.Mcode');
adoquery2.ExecSQL;
adoquery2.Active:=false;
adoquery2.Active:=true;