Re: Using SQL for simple IWS app server
"Nadir Amra" <amra-r/[email protected]>
| Newsgroups | gmane.comp.systems.as400.web |
|---|---|
| Message-ID | <OF918D0460.D6385911-ON00258645.0019D94D-86258645.0019E835@notes.na.collabserv.com> |
There should not be quotes around the question mark. "WEB400" <[email protected]> wrote on 12/20/2020 05:52:08 PM: > From: Jon Paris <[email protected]> > To: "Web Enabling the IBM i (AS/400 and iSeries)" <[email protected]> > Date: 12/20/2020 05:52 PM > Subject: [EXTERNAL] [WEB400] Using SQL for simple IWS app server > Sent by: "WEB400" <[email protected]> > > 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. > > > Jon > -- > This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list > To post a message email: [email protected] > To subscribe, unsubscribe, or change list options, > visit: INVALID URI REMOVED > u=https-3A__lists.midrange.com_mailman_listinfo_web400&d=DwICAg&c=jf_iaSHvJObTbx- > siA1ZOg&r=1i-jGlz0-JTK1aLHcsU-ew&m=oIY4Ea9Wr6JJS3z8MbGgZC- > o47iPwsXApQUqe-CAqrQ&s=rhmAhTMR_ySJ5OdzmRcnMk5RMdgTDbquEJukCBYBWIw&e= > or email: [email protected] > Before posting, please take a moment to review the archives > at INVALID URI REMOVED > u=https-3A__archive.midrange.com_web400&d=DwICAg&c=jf_iaSHvJObTbx- > siA1ZOg&r=1i-jGlz0-JTK1aLHcsU-ew&m=oIY4Ea9Wr6JJS3z8MbGgZC- > o47iPwsXApQUqe-CAqrQ&s=gNfK-6uRzxxh_ufnacpAIijUb8YGEyzw1ztBlfErACc&e= . > -- This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list To post a message email: [email protected] To subscribe, unsubscribe, or change list options, visit: https://lists.midrange.com/mailman/listinfo/web400 or email: [email protected] Before posting, please take a moment to review the archives at https://archive.midrange.com/web400.