ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niels Beekman" <n.beek...@wis.nl>
Subject RE: like and '%'
Date Wed, 17 May 2006 11:28:51 GMT
http://opensource.atlassian.com/confluence/oss/display/IBATIS/How+do+I+u
se+LIKE+in+my+queries


-----Original Message-----
From: Eugeny N Dzhurinsky [mailto:bofh@redwerk.com] 
Sent: woensdag 17 mei 2006 11:52
To: user-java@ibatis.apache.org
Subject: like and '%'

Is it possible to pass some parameter and wrap it with %%?

Something like this: 

select * from table where name=%#param%

to ensure parameters will be escaped as well?
-- 
Eugene N Dzhurinsky

Mime
View raw message