title: MySQL: @variable vs. variable. What's the difference?
body: <p>In another question I posted someone told me that there is a difference between:</p>
  
  <pre><code>@variable
  </code></pre>
  
  <p>and:</p>
  
  <pre><code>variable
  </code></pre>
  
  <p>in MySQL. He also mentioned how MSSQL has batch scope and MySQL has session scope. Can someone elaborate on this for me?</p>