数据库中有两个表:cy和temp
结构:cy
xsbh,姓名,名次
001   aa 
002   bb
003   cc
结构:temp
xsbh  名次
003  1
002  2
001  3
adoquery4.Close;
adoquery4.SQL.Clear;
adoquery4.SQL.Add('insert into cy (名次)  Select 名次 from temp where cy.xsbh = temp.xsbh');
adoquery4.ExecSQL;
我的意图是将temp中的名次放到cy中