Sql Injection Method Clarification : <p>From this sql Query,</p>

<pre><code> select Id, Name from Student1 
 where Id = 1;
</code></pre>

<p>The Table records will appear only one data </p>

<pre><code> 1  Ramu S
</code></pre>

<p>But, This query when execute, </p>

<pre><code> SELECT Id, Name FROM Student1 WHERE Id = '' OR 1=1
</code></pre>

<p>it shows all the records of the table. So, how the query functions?</p>
