Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 2700 invoked from network); 22 Mar 2004 04:53:14 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 22 Mar 2004 04:53:14 -0000 Received: (qmail 60599 invoked by uid 500); 22 Mar 2004 04:52:48 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 60107 invoked by uid 500); 22 Mar 2004 04:52:45 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 60093 invoked from network); 22 Mar 2004 04:52:45 -0000 Received: from unknown (HELO omta14.mta.everyone.net) (216.200.145.38) by daedalus.apache.org with SMTP; 22 Mar 2004 04:52:45 -0000 Received: from sitemail.everyone.net (bigip1-snat [216.200.145.29]) by omta14.mta.everyone.net (Postfix) with ESMTP id 13D6146971 for ; Sun, 21 Mar 2004 20:52:03 -0800 (PST) Received: by sitemail.everyone.net (Postfix, from userid 99) id C3FB1396C; Sun, 21 Mar 2004 20:52:03 -0800 (PST) Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 X-Mailer: MIME-tools 5.41 (Entity 5.404) Date: Sun, 21 Mar 2004 20:52:03 -0800 (PST) From: Pritesh saharey To: "Ant Users List" Subject: RE: Running an Insert query Reply-To: pritesh@sqatester.com X-Originating-Ip: [203.129.224.118] X-Eon-Sig: AQFb+btAXnDzAAtzEAEAAAAB,3e4940e9f717d4bb7e4b7a8026cd30b3 Message-Id: <20040322045203.C3FB1396C@sitemail.everyone.net> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Thanks Marco but i didnt get you can you elobrate more if possible Pritesh Saharey BE(Mech) Software Engineer --- "Marco Rouse" wrote: First run myisamchk and set the auto-increment value you want to start with -A or --set-auto-increment[=3Dvalue]=C2=A0then set the value of the auto increment column in the insert to null. -----Mensaje original----- De: Matt Benson [mailto:gudnabrsam@yahoo.com]=20 Enviado el: S=C3=A1bado, 20 de Marzo de 2004 12:37 p.m. Para: Ant Users List; pritesh@sqatester.com Asunto: Re: Running an Insert query I don't know about MySQL, but in Oracle you would use something called a "sequence" and reference it in your query to set the next value. I would imagine that the MySQL developers would have implemented something similar. -Matt --- Pritesh saharey wrote: > Hi All, > I would like to insert atleast 50,000 records > in database, there is a Ticket_ID field which is > unique and autogenerated like this 104031000001, > 104031000002 ....,=20 > what should i do in my build.xml file to run an > Insert query (database is Mysql), the query can be > like this > INSERT INTO moviecan > VALUES(104031000001,'Naseeb','Hope','2004-03-18 > 11:19:55',100,2500,25,0,1,1,'U',2,2,'2004-03-18 > 11:23:13'); >=20 > I would like to get different Ticket_ID in > incremental form like this 104031000001, > 104031000002, 104031000003 ...., for every Insert > query >=20 > can anybody help me out >=20 > thanks in advance > wishes > pritesh >=20 >=20 >=20 >=20 >=20 >=20 > _____________________________________________________________ > Join SQAtester.com Community ---> > http://www.sqatester.com/testersarea/joinus.htm >=20 > ----------------------------------------------------------------- ---- > To unsubscribe, e-mail: > user-unsubscribe@ant.apache.org > For additional commands, e-mail: > user-help@ant.apache.org >=20 __________________________________ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html ----------------------------------------------------------------- ---- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org _____________________________________________________________ Join SQAtester.com Community ---> http://www.sqatester.com/testersarea/joi= nus.htm --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org