Home » Developer & Programmer » Precompilers, OCI & OCCI » how to display info from host structure pointer
how to display info from host structure pointer [message #109514] Fri, 25 February 2005 03:43
gnanavelou
Messages: 2
Registered: February 2005
Junior Member
Hi,

i have written a code like below
....
int n=10;
struct row
{
int a;
varchar b[25];
};

struct row *r;
.....
exec sql at dbs
declare c1 cursor for
select empid,name
from emp;
.....
exec sql at dbs open c1;

r = (struct row *) malloc(sizeof(struct row));

exec sql at dbs for :n fetch c1 into :r;
printf("%d\n",sqlca.sqlerrd[2]);
.....

this code running with out error,
the sqlca.sqlerrd[2] displays 10

my question is how to print the fetched 10 records????


thanks
Previous Topic: LNK2001: unresolved external symbol
Next Topic: Problems using OCI in multithreaded environment
Goto Forum:
  


Current Time: Wed Nov 25 22:31:28 CST 2020