RE: insertion of multiple rows - correction on my part

2004-07-21 Thread aman
There is REPLACE... SELECT... http://dev.mysql.com/doc/mysql/en/REPLACE.html Thanks Aman On Wed, 2004-07-21 at 11:32, aman wrote: > Replace will be useful if you mean to delete the previous duplicates and > then enter the new data. > Moreover there is no REPLACE... SELECT like there is INSERT...

RE: insertion of multiple rows

2004-07-21 Thread aman
e requisite information, and > then delete the temp table... > > any thoughts... > > -bruce > > > -Original Message- > From: Andrew Hill [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 21, 2004 8:51 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject

RE: insertion of multiple rows

2004-07-21 Thread aman
Replace will be useful if you mean to delete the previous duplicates and then enter the new data. Moreover there is no REPLACE... SELECT like there is INSERT... SELECT which make life easy! Aman Raheja http://www.techquotes.com On Wed, 2004-07-21 at 11:12, Laercio Xisto Braga Cavalcanti wrote: >

RE: insertion of multiple rows

2004-07-21 Thread bruce
temp table... any thoughts... -bruce -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 8:51 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: insertion of multiple rows Hi Bruce, You might be interested in the LOAD DATA INFILE syntax

RE: insertion of multiple rows

2004-07-21 Thread Laercio Xisto Braga Cavalcanti
You can use replace command instead of insert. It will handle duplicate rows. Regards, Laercio. -Original Message- From: aman [mailto:[EMAIL PROTECTED] Sent: quarta-feira, 21 de julho de 2004 13:01 To: [EMAIL PROTECTED] Subject: RE: insertion of multiple rows I agree with Andrew

RE: insertion of multiple rows

2004-07-21 Thread aman
I agree with Andrew - this is quicker. And if you area transferring data from one table to the other, you may wanna look at http://dev.mysql.com/doc/mysql/en/INSERT_SELECT.html Thanks Aman Raheja http://www.techquotes.com On Wed, 2004-07-21 at 10:51, Andrew Hill wrote: > Hi Bruce, > > You migh

RE: insertion of multiple rows

2004-07-21 Thread Andrew Hill
Hi Bruce, You might be interested in the LOAD DATA INFILE syntax. See http://dev.mysql.com/doc/mysql/en/LOAD_DATA.html. The command can either be used to replace duplicate records on unique keys, or can ignore them. Cheers, -- Andrew Hill Developer Awarez Ltd. Kirkman House, 12-14 Whitfield Str

Re: insertion of multiple rows

2004-07-21 Thread Alec . Cawley
"bruce" <[EMAIL PROTECTED]> wrote on 21/07/2004 16:35:34: > hi... > > quick question that i can't find an answer to. i have 500-100 rows of data > that need to be inserted. i can do it a row at a time. > > is there a way i can do the inserts all at one time, reducing the hits on > the database