You need to sign in to do that
Don't have an account?

How to use LIKE clause in the query for dynamic search text?
Hi,
We got a requirement to pull the records which contains '123' in a particular column. So, we used LIKE '123%' clause in the query. However, the search text value will be entered dynamically and hence we tried to change the query with class varibale for the search text. But it fails for the below where clause.
LIKE "'"+searchText+"%'"
Can anyone help me to fix this issue.
Regards,
SuBaa
Please check below options
Thanks ,
Bala
All Answers
I remember having problems trying to build up the string in this way. The way I found that worked was to build the wildcarded string in a variable as follows:
and then use this in the query:
Please check below options
Thanks ,
Bala
I have a 1 qustion can you slove because having a problem ?
how to perform upsert operation with the Trigger because want to perform that insert the record if record all ready exist then update else create a new Record ??
Please Slove