Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Problems with update in OCI
I have problems using update statements in OCI. I'm using C in a NT environment with Oracle 7.3. The following code works:
text *update= (text *) "UPDATE aTable SET qty=54 WHERE bol='55'";
oparse(&cursor,update,(sb4)-1,0,1);
oexn(&cursor,1,0);
ocom(&lda);
But when I use a binding variable it does not work (no update is made):
char c[21];
text *update= (text *) "UPDATE aTable SET qty=54 WHERE bol=:c";
strcpy(c,"55");
Please, can anyone help me?
Thanks,
Jens Received on Tue Mar 31 1998 - 00:00:00 CST
![]() |
![]() |