title: mysql query does not work
body: <p>i want to set query if row not exist</p>
  
  <pre><code>IF NOT EXISTS (SELECT id FROM table WHERE id=1)
  INSERT INTO table (id, name) VALUES (1,'abx');
  </code></pre>
  
  <p>and that if id!=1 then values are inserted and Check if row already exists</p>
  
  <p>if any solution ?</p>
  
  <p>thanks in advance ...</p>
  
  <p>finally i soved it</p>
  
  <p>INSERT INTO table (id, name) VALUES (1,'abx') ON DUPLICATE KEY UPDATE id = 1;</p>
  
  <p>thanks for your suport</p>