Re: select from esql/c
Posted in 1998
GreggD09 — — source: Informix-list mailing list archive (1991-1998)
Thats a n incomplete description but i would assume you say
$char variable[10]
$long variable
.......
$ database database_name;
$ declare my_cursor cursor for
select * into
$variable,
$variable,
$variablefrom
table_name
where table.field = whatever
$ open my_cursor
for (;;)
{
$ fetch my_cursor;
if (sqlca.sqlcode != 0 )
break;
...........
}
....
...
$ close my_cursor;
$close database;
I hope this is what your looking for .
Gregg.........