I'm working off the documentation here:
The Basic Query example works fine and returns the entire result set as a
JS object. That's all well and good until I need to insert user-input into
the WHERE clause. I can't just poke raw user-input into the SQL
statement. It looks like I can do parameters with a prepared statement,
but that requires me to iterate thru the result set (rather than returning
all at once).
Do I need to use a prepared statement and manually reconstruct the result
set, or is there a better way?
This is the IBMi Open Source Roundtable (OpenSource) mailing list
To post a message email: OpenSource@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: OpenSource-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.