title: MySQL Workbench - Disable User-defined variable caching?
body: <p>Here's the shortest example I have:</p>
  
  <p><strong>Step 01)</strong></p>
  
  <pre><code>SELECT @var;
  </code></pre>
  
  <p>This will return NULL because @var has not been initialized.</p>
  
  <p><strong>Step 02)</strong></p>
  
  <pre><code>SELECT @var:=9001
  </code></pre>
  
  <p>This will return 9001.</p>
  
  <p><strong>Step 03)</strong></p>
  
  <pre><code>SELECT @var;
  </code></pre>
  
  <p>In MySQL Workbench's query tab, this will return 9001, still. I have to set it to NULL myself.</p>
  
  <p>I don't want MySQL Workbench to cache the value of a user-defined variable between queries in the query tab. Disabling it is useful when I'm trying to build and test a query that uses user-defined variables.</p>
  
  <p>I did some searching but I couldn't phrase my question the right way because I kept getting the answer to use SQL_NO_CACHE which won't work in this case. (I tried it.)</p>