Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 94253 invoked from network); 28 Jan 2010 10:56:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Jan 2010 10:56:17 -0000 Received: (qmail 44642 invoked by uid 500); 28 Jan 2010 10:56:17 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 44616 invoked by uid 500); 28 Jan 2010 10:56: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 44608 invoked by uid 99); 28 Jan 2010 10:56:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jan 2010 10:56:16 +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; Thu, 28 Jan 2010 10:56:06 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NaS2L-0002iN-Vz for user-java@ibatis.apache.org; Thu, 28 Jan 2010 02:55:45 -0800 Message-ID: <27354145.post@talk.nabble.com> Date: Thu, 28 Jan 2010 02:55:45 -0800 (PST) From: suprememenu To: user-java@ibatis.apache.org Subject: RE: how to concate a string in insert statement using ibatis? In-Reply-To: <27353835.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: shaikhid@gmail.com References: <27353435.post@talk.nabble.com> <000c01caa002$36882030$a3986090$@com> <27353818.post@talk.nabble.com> <27353835.post@talk.nabble.com> Hi, I solved the issue from java side . thanks. suprememenu wrote: > > hi , > i mean its inserting the database but with value as abc?orderId it > should insert into db as abc123 (where 123 is the orderId) > > > > suprememenu wrote: >> >> hi , >> when i try 'abc?orderId?' this its inserting the data like >> 'abc?orderId?' directlly in the database. >> >> >> >> >> meindert-3 wrote: >>> >>> Best option is to do it on the java side, otherwise you can use >>> 'abc?orderId?' what will insert (sql inject!) the literal value of >>> orderId >>> in your query >>> -----Original Message----- >>> From: suprememenu [mailto:shaikhid@gmail.com] >>> Sent: 28 January 2010 11:55 AM >>> To: user-java@ibatis.apache.org >>> Subject: how to concate a string in insert statement using ibatis? >>> >>> >>> hi all, >>> i would like to know how can i contact a string in insert statemnet >>> using >>> ibatis? >>> >>> insert into knet >>> (TRACK_ID, >>> STORE_ID, >>> order_id >>> DATE >>> ) >>> values( >>> #trackId#, >>> #storeId#, >>> 'abc'+#orderId#, >>> SYSDATE) >>> >>> >>> i mean for the column orderId i need to add a static string . when i >>> tried >>> the above i am getting error ... >>> -- >>> View this message in context: >>> http://old.nabble.com/how-to-concate-a-string-in-insert-statement-using-ibat >>> is--tp27353435p27353435.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 >>> >>> >>> No virus found in this incoming message. >>> Checked by AVG - www.avg.com >>> Version: 9.0.733 / Virus Database: 271.1.1/2650 - Release Date: 01/27/10 >>> 21:36:00 >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org >>> For additional commands, e-mail: user-java-help@ibatis.apache.org >>> >>> >>> >> >> > > -- View this message in context: http://old.nabble.com/how-to-concate-a-string-in-insert-statement-using-ibatis--tp27353435p27354145.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