This API can be used to escape user input for SQL statements.
Parameters
- Data string
Returns
- Returns
Example
Code Block | ||
---|---|---|
| ||
var _stm = pjs.executeDirect("SELECT UPPER ( '" + pjs.escapeString(CharField) + "' ) FROM SYSIBM.SYSDUMMY1");
pjs.fetch(_stm, CharField);
pjs.close(_stm); |