title: can we declare cursor outside procedures in mysql
body: <p>I am not able to declare cursor.
  what is significance of cursor in mysql </p>
  
  <pre><code>declare c1 cursor for select name from record
  </code></pre>
  
  <blockquote>
    <p>ERROR 1064 (42000): 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 'declare c1 cursor for select name from record' at
    line 1</p>
  </blockquote>