MySQL Forums :: InnoDB :: Fast Update

Advanced Search

Re: Fast Update
Posted by: Ferdie Palero ()
Date: December 04, 2016 07:11PM

Hi Peter,

Where I am wrong here, always inserting a row even it was existing.

INSERT INTO exclusive (lname,fname,mame,bname,address,city,state,zip)
SELECT a.lname,a.fname,a.mname,a.bname,a.address,,a.state,
FROM exclusive a
LEFT JOIN exclusive_temp b ON b.lastname = a.lastname
AND b.fname = a.firstname
AND b.mname = a.mname
AND b.bname = a.bname
AND b.address = a.address
AND b.state = a.state
where a.fname is null;


Options: ReplyQuote

Subject Views Written By Posted
Fast Update 395 Ferdie Palero 11/30/2016 06:10PM
Re: Fast Update 202 Peter Brawley 11/30/2016 08:17PM
Re: Fast Update 276 Ferdie Palero 11/30/2016 08:27PM
Re: Fast Update 273 Ferdie Palero 12/01/2016 07:36PM
Re: Fast Update 180 Ferdie Palero 12/04/2016 07:11PM
Re: Fast Update 253 Peter Brawley 12/04/2016 09:15PM
Re: Fast Update 191 Ferdie Palero 12/05/2016 12:06AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.