List:General Discussion« Previous MessageNext Message »
From:Tim Johnson Date:May 15 2010 3:01pm
Subject:Re: C API Function for count(*)
View as plain text  
* Dan Nelson <dnelson@stripped> [100514 21:38]:
> 
> You can't do it with one function call, but you can do it, since the MySQL
> cli was able to print "16" in your example above, and it was written in C. 
> Take a look at mysql_store_result(), mysql_num_fields(),
> mysql_field_count(), mysql_fetch_row(), and mysql_fetch_lengths().  There's
> a simple code fragment to print a resultset on this page:
> 
> http://dev.mysql.com/doc/refman/5.1/en/mysql-fetch-row.html
  Thanks Dan. I can use the C code there to model the
  code for the API.
  cheers
-- 
Tim 
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com
Thread
C API Function for count(*)Tim Johnson15 May
  • Re: C API Function for count(*)Dan Nelson15 May
    • Re: C API Function for count(*)Bob Cole15 May
      • Re: C API Function for count(*)Tim Johnson15 May
    • Re: C API Function for count(*)Tim Johnson15 May