title: Difference between DECLARE and SET in SQL
body: <p>What's the difference between DECLARE and SET using SQL (or more specifically MySQL)?</p>
  
  <p>Both can set variables it seems. I have read the MySQL docs and I did not understand the difference between the two.</p>