Home » Developer & Programmer » Precompilers, OCI & OCCI » Pro *C Problem with HOST ARRAY
Pro *C Problem with HOST ARRAY [message #110826] Thu, 10 March 2005 11:14
Hector
Messages: 14
Registered: July 2000
Junior Member
Hello all,

I have a problem with a code in Pro*C
I have this structure:

typedef struct TP_STRUCTURE
{
char ovcTip[4];
char ovcCod[8];
}TP_STRUCTURE_;

I declare one variable

TP_STRUCTURE st_structure[100];

An then i make fetch with data.

FETCH CURSOR
INTO :st_structure;

In this moment i have the structure with data and then i want delete one table with host array.

Only in one time, i don't want make a "for" or "while" iwant use host array

DELETE FROM TABLE
WHERE TIP = :st_structure->ovcTip AND
COD = :st_structure->ovcCod;

But this don't run very well, only delete one row.

How make this????


Thank you very much.
Previous Topic: how to build Make File in PROC
Next Topic: OCI Error while Executing
Goto Forum:
  


Current Time: Fri Aug 14 10:00:19 CDT 2020