Hi,

im trying to return many data in sql extension i have a function that
return structure that have a name and age of many users. but i just can
return text o int, but i dont know how to return a structure like a table.

struct data {
char *name;
int age;
};

El 1 de febrero de 2012 13:48, Jorge Eliécer Osorio Caro <
[email protected]> escribió:

> Hi everyone i hope that you are ok.
>
> so im doing a sqlite extension that generate many data, i have a structure
> something like that:
>
> struct data {
> char *name;
> int age;
> };
>
> in the precess y create a listo of data:
>
> data *t = malloc(5 * sizeof(data))
>
> i need to return that values in order that the user can fetch like a
> table. using something like
> sqlite3_result_value i dont know how to do that.
>
> Help.
>
> Thanks.
>
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to