Referring to another post, I solved this problem by creating a resource registry called PercentSign.
Original Message:
Sent: Tue October 15, 2024 11:38 PM
From: NeverXP YANG
Subject: Re: Using DBQUERY with Oracle LIKE condition
Hi, this method doesn't solve my problem, can anyone help me?
My query:
SELECT ROWNUM RN, USTRD RMT FROM MY_TEST WHERE (USTRD NOT LIKE REPLACE('/ID?', '?', '%') AND USTRD NOT LIKE REPLACE('/AMT?', '?', '%'))
What I got in DBL:
SELECT ROWNUM RN, USTRD RMT FROM MY_TEST WHERE (USTRD NOT LIKE REPLACE('/ID?', '?', ''))
Second condition was removed.
------------------------------
NeverXP YANG
Original Message:
Sent: Wed April 05, 2006 07:12 AM
From: Archive User
Subject: Re: Using DBQUERY with Oracle LIKE condition
Originally posted by: SystemAdmin
I have used the SQL REPLACE to get round this problem.
dbquery(
"select dummy from dual where dummy like REPLACE('?X?','?','%')",
"-DBTYPE ORACLE -CONNECT c -USER scott -PASSWORD tiger -TRACE"
)
#IBM-Websphere-Transformation-Extender
#IBMSterlingTransformationExtender
#DataExchange