I have a problem with the command: mysql_num_rows(). The C-code looks like this:
sprintf(tmp_str,"SELECT * from adapter");
my_result = mysql_use_result(my);
num_rows = mysql_num_rows(my_result);
printf("Anzahl Datensätze: %i\n", num_rows);
I'll got every time a counter with 0, but I have 4 Datasets in my table.
What's wrong in my code?
What I need is the number of entries in my table.
Thanks for help!
February 12, 2011 12:54PM
February 12, 2011 02:16PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.