有这样一个access数据库cjgl.mdb里面这个cy 表
编号 总分 名次
001 580
004 580
002 578
003 578
005 578
006 560
用下列程序能得出名次
adoquery5.Close;
adoquery5.SQL.Clear;
adoquery5.SQL.Add('select (select count(*)+1 from cy as b where a.总分<b.总分 ) as 名次 from cy as a order by 总分 desc');
adoquery5.ExecSQL;
用什么办法将查询到的一列数据复制到cy这个表里?
编号 总分 名次
001 580
004 580
002 578
003 578
005 578
006 560
用下列程序能得出名次
adoquery5.Close;
adoquery5.SQL.Clear;
adoquery5.SQL.Add('select (select count(*)+1 from cy as b where a.总分<b.总分 ) as 名次 from cy as a order by 总分 desc');
adoquery5.ExecSQL;
用什么办法将查询到的一列数据复制到cy这个表里?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货