text: EXEC SQL BEGIN DECLARE SECTION;
  int v1;
  VARCHAR v2;
  EXEC SQL END DECLARE SECTION;
  
   ...
  
  EXEC SQL DECLARE foo CURSOR FOR SELECT a, b FROM test;
  
   ...
  
  do
  {
      ...
      EXEC SQL FETCH NEXT FROM foo INTO :v1, :v2;
      ...
  } while (...);
  