Reputation: 89
I want to use functions in like operator.
select * from LG_211_CLCARD where DEFINITION_ like '%LTRIM(RTRIM('test '))%'
Upvotes: 1
Views: 1344
Reputation: 272256
I suppose you want this:
SELECT *
FROM LG_211_CLCARD
WHERE DEFINITION_ like CONCAT('%', LTRIM(RTRIM(' test ')), '%')
Upvotes: 3