Article ID: 173843
Article Last Modified on 10/3/2003
//
// Retrieves one row of results. The SELECT INTO statement is also a
// singleton select
EXEC SQL select iID
INTO :gTest[iCount].iValue
FROM tblTest
where iID = 1;
EXEC SQL begin declare section;
typedef struct stTest
{
int iValue;
} TEST;
TEST * pCurrent = NULL;
EXEC SQL end declare section;
.
.
.
//
// Can use a pointer to fill array
pCurrent = &gTest[iCount];
//
// Retrieves one row of results. The SELECT INTO statement is also a
// singleton select
EXEC SQL select iID
INTO :pCurrent->iValue
FROM tblTest
where iID = 1;
Additional query words: ESQL E-SQL SQC
Keywords: kbprb kbcode KB173843