Hi,
I had already tried the syntax which you gave. But anycase, I tried something new and that worked.
I used
sprintf(message,"Insert into tablename values ('%s','%s','%s')",x1,x2,x3);
message is char[100] and x1, x2, x3 can be of any type. Mine was CString.
Then I converted...
Hi,
I am working on a code in VC++ 6.0 and I access an Oracle database by setting up an MFC Appwizard project with Database support. I can run any command of SQL using my VC++ code, but for insert command, I need to insert variables from the code.
For eg: A command: insert into tablename...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.