Dear Peter,Thanks for your guiding.I have implemented it.Thank from every
member of this list too.
Mohsen,
The data structure you seem to be looking for is MYSQL_RES, the C API
resultset, which is an array which is described in the manual page you
were pointed to. It's pretty straightforward
Dears,I was attempping with your code.But it could't do my job.
My job:
I have list of my tables in my DB,i did it with mysql_list_tables() func.
It returns MYSQL_RES type.But i don't know how to split it to an array.
Please guide me..
Hi,
I think you can find all the information you are
Mohsen,
The data structure you seem to be looking for is MYSQL_RES, the C API
resultset, which is an array which is described in the manual page you
were pointed to. It's pretty straightforward to use, eg
...
MYSQL_RES *rset;
...
if( mysql_real_query( conn, qry, strlen( qry ) == MYSQL_TRUE ) {
Hi,
I think you can find all the information you are looking for there:
http://dev.mysql.com/doc/mysql/en/c.html
You have a description of all the functions :
http://dev.mysql.com/doc/mysql/en/c-api-functions.html
For example:
http://dev.mysql.com/doc/mysql/en/mysql-fetch-row.html
MYSQL_ROW row;