Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic SQL and host variables

Status
Not open for further replies.

Faustino29

Programmer
Mar 24, 2001
5
BE
I have problems with host variables. I'm programming in ESQL/C with MS Visual. I must pass several host variables to a function but I don't know how I could it.

Example :

void main (void)
{
EXEC SQL BEGIN DECLARE SECCTION;
long test;
EXEC SQL END DECLARE SECTION;

testMethod(test);
...
}

void testMethod (long param)
{
EXEC SQL COUNT(*) INTO :param FROM TABLE; // Problem !!!
}

Can you help me plz ??

Thanks.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top