title: Does MySQL support "IF EXISTS"?
body: <p>I think I have a conflict between my knowledge on SQL Server and MySQL.<br>
  When I run this query, I get an error always from MySQL:</p>
  
  <pre><code>If EXISTS (select * from tbl_admin) THEN
      select 'OK';
  END IF;
  </code></pre>
  
  <p>The error message is:</p>
  
  <blockquote>
    <p>[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'if EXISTS (select * from tbl_admin) then select '1'
    -- select '1' WHERE EXISTS ' at line 1</p>
  </blockquote>
  
  <p>Please help me and tell me am I wrong in writing this query? What's wrong?<br>
  I want to do something if I have something in <code>tbl_admin</code> table.</p>