Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
. i create a program for fetching data from the database .
database is mysql database;
i working perfectly for retrieving the integer data types..
but i can't able to retrieve the string value from the database.,.

my coding is to fetch the data is:


C#
RecSet = Con->Execute("SELECT * FROM t2",RecordsAffected,1);
        while(!RecSet->EndOfFile)
        {
            cout<<RecSet->Fields->GetItem("Id")->Value.intVal<<"\n";
    //  Field1 = RecSet->Fields->GetItem("Name")->Value.bstrVal;
        //  char *p= (char *)f1;
            RecSet->MoveNext();
        }



can you give the solution to rectify the problem..
Posted

1 solution

search the data with your self .. in google.. don't ask small small query to us
..
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900