N78A
7 years agoContributor
Using like operator in JDBC soapui
Hi,
I am trying to run below query but it does not work.
select * from <table> where row_key like ':custId%'
where ":custId" is parametrized to fetch the custId from excel sheet and I want to get the records from database which are having combination of custId (from excel sheet) , '|' and timestamp. please refer image attached for exact data.
If I try to execute below , it works fine, but I need to use :custId from excel sheet. Please refer to image attached for my JDBC request.
select * from <table> where row_key like '1012|%'
Problem is resolved, I used below query to use 'like' in soapui jdbc.
SELECT * FROM (SELECT * FROM <table> where row_key like concat(:custId,'%') )