Home » Developer & Programmer » Precompilers, OCI & OCCI » oci call --urgent
oci call --urgent [message #94081] |
Thu, 08 January 2004 04:24  |
Ritu Bharti
Messages: 1 Registered: January 2004
|
Junior Member |
|
|
I am using oci in c++ on posix. I am able to get the char data from the database into my progarm but not able to fetch data of type number and date by using ocidefinebypos call.not getting whether some additional attributes have to be set !!!!
Not able to figure out error!!!!!
|
|
|
Re: oci call -urgent [message #94103 is a reply to message #94081] |
Wed, 18 February 2004 23:53  |
Jitendra Agrawal
Messages: 71 Registered: December 2003
|
Member |
|
|
Hi Ritu,
Here is a sample code for defining numbers.
int pi_Define;
OCIDefine *lC_Dfn = (OCIDefine *) NULL;
mvi_Status = OCIDefineByPos (mvC_Stmt, &lC_Dfn,
errhp, (ub4) 1, (dvoid *)
&pi_Define, (sb4) sizeof (ub4), (ub2) SQLT_INT, (dvoid *) 0,
(ub2 *) 0, (ub2 *) 0, OCI_DEFAULT);
hope it helps.
Regards,
Jitendra Agrawal
http://www.telemune.com
|
|
|
Goto Forum:
Current Time: Sun Feb 23 19:00:27 CST 2025
|