title: How to use INSERT... ON DUPLICATE?
body: <p><strong>Structure table:</strong></p>
  
  <pre><code>CREATE TABLE IF NOT EXISTS `table` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `rows_id` int(11) NOT NULL,
    `url_id` int(11) NOT NULL,
    `keyword_id` int(11) NOT NULL,
    `date` datetime NOT NULL,
    `seet` int(11) NOT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ;
  </code></pre>
  
  <p><a href="http://sqlfiddle.com/#!2/2423a" rel="nofollow"><strong>STRUCTURE TABLE WITH TEST ROWS ON SQLFIDDLE</strong></a></p>
  
  <p><strong>query insert:</strong></p>
  
  <pre><code>INSERT INTO `table` (`id`, `rows_id`, `url_id`, `keyword_id`, `date`, `seet`) 
  VALUES
  (1, 1, 2, 1, '2014-05-01 00:00:00', 1);
  </code></pre>
  
  <p>I would like insert this row or update row if table already have row with <code>date</code> = '2014-05-01 00:00:00' and <code>rows_id</code> = '1' and <code>keyword_id</code> = '1'.</p>
  
  <p>In <a href="http://dev.mysql.com/doc/refman/5.0/en/insert-on-duplicate.html" rel="nofollow">dev.mysql.com</a> i see query <code>INSERT ... ON DUPLICATE KEY UPDATE</code> but how make insert or update in my case ?</p>