原帖由 ivhb 于 2008-9-4 22:25 发表
我一般是
exec sql begin declare section;
char *cur = __func__;
exec sql end declare section;
exec sql declare :cur cursor for ....
exec sql open :cur;
for (;{
exec sql fetch : ...
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) | Powered by Discuz! X3.2 |