Bonjour, j'aimerais utiliser l'attribut %found d'un curseur déclaré dans un bloc PL/SQL.
Voici mon code:
include(SRINCLUDE/header.srh)
include(SRINCLUDE/srorapas.srh)
include(SRINCLUDE/cadre.src)
#define ELM_LONGSTR 20
void errexit(char * param,char* s,int i,char *d,char*t);
void finNormaleProgramme(char *);
int main(argc,argv)
/*================*/
long argc;
char *argv[];
{
EXEC SQL BEGIN DECLARE SECTION;
int noint;
char nom[1000]="";
SQL_CURSOR mainc1;
char sql[1000]="select noint,nom from identite.membre where rownum < 10 ";
EXEC SQL END DECLARE SECTION;
printf("\n debut du programme \n");
EXEC SQL WHENEVER SQLERROR do fatalError(__FILE__,__LINE__);
el_connect("batch");
printf("\n connecté \n");
(…)