|
I have and inquiry pgm (SQLRPGLE) that searches on names. Works
great until the search name contains a quote like O'CONNER.
The select statement looks like:
Select PhCsNo, PhCsNm, PhCont, PhCTyp, PhPhNo, PhFxNo, PhEml,
PhAdd1, PhAdd2, PhCity, PhStCd, PhZipC
From PhMast PM
Where PM.PhCont Like '%O'CONNER%'
Order By PhCsNo
How should it look when there is an embedded quote?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.