title: How can I store a query in a MySQL column then subsequently use that query?
body: <p>For example, say I'm creating a table which stores promo codes for a shipping site. I want to have the table match a promo code with the code's validator, e.g.</p>
  
  <pre><code>PROMO1: Order must have 3 items
  PROMO2: Order subtotal must be greater than $50
  </code></pre>
  
  <p>I would like to store the query and/or routine in a column in the table, and be able to use the content to validate, in the sense of </p>
  
  <pre><code>SELECT * FROM Orders 
  WHERE Promo.ID = 2 AND Promo.Validation = True
  </code></pre>
  
  <p>Or something to that effect. Any ideas?</p>