|
-
April 17th, 2003, 01:45 AM
#1
using insert sql statement in c/c++
Dear Gurus
Hi
I am using sql statement in my c++ code
i am facing a small problem....
i require to insert some value into my sql table
the values are stored in variable which i like to insert into my table data
so please help me in doing so
i am using something like this.....
RecSet = Con->Execute("Insert into data values('8',firstName,secondName,ageValue)",RecordsAffected,1)
here firstName and secondName are
char *firstName,*secondName
RecordsAffected is
VARIANT *RecordsAfected
RecSet is recordset i am usng
and con is connection pointer.
hope for your help
thanks
visal
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|