title: mysql and or query together
body: <p>How can i run mysql and or query together instant of separate query.
  e.g.:</p>
  
  <p>And query:</p>
  
  <pre><code>select * form tablename where name='A' and password="A" and id='A';
  </code></pre>
  
  <p>Or query:</p>
  
  <pre><code>select * form tablename where name='A' or password="A" or id='A';
  </code></pre>
  
  <p>-These are 2 different query,can i make these query together?what is the syntax??</p>