Re: How to bind data using C++ and MySQL?
Posted by: amit pathak
Date: March 17, 2011 12:39AM

no according to me when u get the data from database , by default it is in string format,
I used it, thats why i know, i wrote the code for c api so if u will use
while((row = mysql_fetch_row(result)) != NULL)
{
for(i=1;i<no_of_coloum;i++)
printf("%s", row);
}
it will definately work, so there are no need to grab the information about coloum data type when u use that value only for show, if u want to perfom any action then definatly u need to change it in other type- like for int coloum
int temp=(int)row[j];
i hope u got sth new here..

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: How to bind data using C++ and MySQL?
679
March 17, 2011 12:39AM


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.