Warning: Creating default object from empty value in /www/htdocs/v030397/mysql-qotd/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 4991

Warning: Creating default object from empty value in /www/htdocs/v030397/mysql-qotd/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 4993

Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/v030397/mysql-qotd/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php:4991) in /www/htdocs/v030397/mysql-qotd/wp-includes/feed-rss2-comments.php on line 8
Comments on: Question 27: Which is the equivalent to the REPLACE statement below? http://mysql-qotd.casperia.net/archives/226 mysql 5.0/5.1 questions for learning purposes Fri, 06 Aug 2010 16:56:36 +0000 http://wordpress.org/?v=abc hourly 1 By: urs http://mysql-qotd.casperia.net/archives/226/comment-page-1#comment-33 urs Tue, 23 Feb 2010 16:18:30 +0000 http://mysql-qotd.casperia.net/?p=226#comment-33 <b>   Answer:   d   A <code>REPLACE</code> does a <code>DELETE</code> and an <code>INSERT</code>. Answer a does an <code>INSERT</code> and an <code>UPDATE</code>. c only inserts, if the row does not exist.   </b>
 
Answer:
 
d
 
A REPLACE does a DELETE and an INSERT. Answer a does an INSERT and an UPDATE.
c only inserts, if the row does not exist.
 

]]>