C++如何接收sql选择的多个结果??

shri2573
C++如何接收sql选择的多个结果??

select citycode,sum(value) from table group by citycode;
结果为多条记录,C++怎么接收这些结果!

chzht001
[quote]原帖由 [i]shri2573[/i] 于 2008-6-20 09:55 发表 [url=http://bbs.chinaunix.net/redirect.php?goto=findpost&pid=8624799&ptid=1165222][img]http://bbs.chinaunix.net/images/common/back.gif[/img][/url]
select citycode,sum(value) from table group by citycode;
结果为多条记录,C++怎么接收这些结果! [/quote]

游标

net_robber
use fetch please

and different DataBase has different Function

view your mannual