Comment stocker les engegistrement retournés pas un select en ECPG/Pro-C ?
J'ai essayé ça:
Code :
- EXEC SQL include sqlca;
- EXEC SQL begin declare section;
- char* array = NULL;
- EXEC SQL end declare section;
- EXEC SQL select * into :array from message where msg_id>440;
- printf("Cannot perform action: error %d : %s\n", sqlca.sqlcode, sqlca.sqlerrm.sqlerrmc);
- printf("%d\n", (int)array[0]);
|
et ça foire:
52
Cannot perform action: error -202 : Too few arguments in line 25.
Comment on fait ?
PS: pas d'utilisation de CURSOR/FETCH svp.