Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 10 Next »

This API binds parameters to a prepared statement.

Before using this API, you must call pjs.prepare(), so that you can pass in the handle from that call.

Parameters
  1. The handle created by pjs.prepare().
  2. An array of parameters for each SQL parameter marker. Each element in the array must be another array, where the first element is the value of the parameter and the second is the parameter type. For example:
    • [[paramA, SQL_PARAM_INPUT], [paramB, SQL_PARAM_INPUT]]
Example
pjs.connect("*LOCAL");  
var _stm = pjs.prepare("SELECT * FROM PJSTEST/PRODUCTSP WHERE PRID = ?");
pjs.bindParameters(_stm, [
  [gPrid, SQL_PARAM_INPUT]
]);


Requirements

This API requires the Profound.js Connector module.

  • No labels