On Dec 20, 2020, at 8:09 PM, Vernon Hamberg <vhamberg@xxxxxxxxxxxxxxx> wrote:
Would it work to use LIKE(?) - so it could generate a parameter for that? TYPE LIKE('?') is looking for a match for the string that is a question mark, seems to me early this evening!
On 12/20/2020 5:52 PM, Jon Paris wrote:
Has anyone been able to use a SELECT that includes a LIKE clause in the SQL when deploying SQL statements with IWS?
Unless I'm missing a PTF or something it doesn't seem to work - mainly because it does not recognize the ? as a parameter marker when included in a LIKE.
So SELECT * FROM ABC WHERE TYPE = ? generates a named parameter that can be associated with data from the URL
SELECT * FROM ABC WHERE TYPE LIKE('?') does not generate a parameter so there is nothing to associate.
The docs don't help as they don't list any limitations on what the SQL can and cannot do.
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: WEB400-request@xxxxxxxxxxxxxxxxxx
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.