Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejavascript
var c1 = pjs.allocStmt();
pjs.executeDirect(c1, "selectSELECT prid, prname, prdesc fromFROM demolib/productsp orderORDER byBY prid");

if (SQLSTATE == '00000') {
 
  var obj = c1.fetch();
  while (c1.hasMoreRows()) {
    console.log(obj);
    obj = c1.fetch();
  }
 
}

pjs.close(c1);