If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Any opinions on ON DUPLICATE KEY UPDATE?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-31-08, 00:00
Frunkie Frunkie is offline
Gives Bad Advice
 
Join Date: Mar 2007
Location: 010101010110100
Posts: 791
Any opinions on ON DUPLICATE KEY UPDATE?

ON DUPLICATE KEY UPDATE

I know this isn't standard SQL but can anyone give me some advice on whether to use this or not? It's tempting because of its convenience.

I am wondering if it falls along the same lines as never using the "dreaded evil enum"?

Reply With Quote
  #2 (permalink)  
Old 12-31-08, 02:01
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,045
not even close to that

go ahead and use it, it is simpler than not having it available

__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 12-31-08, 13:39
Frunkie Frunkie is offline
Gives Bad Advice
 
Join Date: Mar 2007
Location: 010101010110100
Posts: 791
That's Great News. Thanks Rudy!

Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On