title: error with IF EXISTS ()
body: <pre><code>IF NOT EXISTS (SELECT 1 FROM Products WHERE name='Iphone1' AND manufacturer='appl') THEN
        INSERT INTO Products(product_id, name, category, manufacturer) 
           VALUES (10000, 'IphoneZ', null, 'appl');
  </code></pre>
  
  <blockquote>
    <p>ERROR:  syntax error at or near "IF" LINE 1: IF NOT EXISTS (SELECT 1
    FROM Products WHERE name='Iphone1' A...</p>
  </blockquote>
  
  <p>Can anyone help me understand what I am doing wrong?</p>