Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 84351 invoked from network); 23 Sep 2009 12:52:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Sep 2009 12:52:18 -0000 Received: (qmail 96727 invoked by uid 500); 23 Sep 2009 12:52:17 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 96708 invoked by uid 500); 23 Sep 2009 12:52:17 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 96700 invoked by uid 99); 23 Sep 2009 12:52:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Sep 2009 12:52:17 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Sep 2009 12:52:08 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MqRJz-0004BH-O0 for user-java@ibatis.apache.org; Wed, 23 Sep 2009 05:51:47 -0700 Message-ID: <25531117.post@talk.nabble.com> Date: Wed, 23 Sep 2009 05:51:47 -0700 (PDT) From: quinya To: user-java@ibatis.apache.org Subject: Re: like issue plz help me In-Reply-To: <25531101.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: y.quinby@ilocal.nl References: <25531101.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Not sure if I understand right but can't you just do... select * from Someone where UPPER(name) like UPPER(#name# ) Then put the '%' in the actual name proerty value. As in String s = "%nameParamValue%"; That's how I do my LIKE statements. HelpMePlz wrote: > > Hi to all, > > select * from Someone where name like 'a%' > this is in oracel > > if i run this query i am getting only 3 records > > for this query in ibatis > > Select * from someone where UPPER(NAME) LIKE '%' || > UPPER(#name#)||'%' > > if i run this query i am getting all the results which name contain 'a ' > in that like i am getting 10 results but i have to get only 3 results > which name strating with 'a' > > > please can any one help me it is very urgent for me > > i tried like this also which is qiven in FAQ in Ibatis > > > Select * from someone where UPPER(NAME) LIKE '%%' || > UPPER(#name#)||'%%' > http://opensource.atlassian.com/confluence/oss/display/IBATIS/How+do+I+use+LIKE+in+my+queries > > ' > > > > -- View this message in context: http://www.nabble.com/like-issue-plz-help-me-tp25531101p25531117.html Sent from the iBATIS - User - Java mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org For additional commands, e-mail: user-java-help@ibatis.apache.org