title: MySQL execute function inside query
body: <p>I wrote a mysql query like this</p>
  
  <pre><code>select concat(b.functionName,'(',id,')') as outPut from ( SELECT id
  FROM   test _table ) a join my_all_functions_table b on a.fID = b.id;
  </code></pre>
  
  <p>What I wanted to do is to execute a function only after fetching its name from table. Function name is stored in <code>my_all_functions_table</code> and I fetched that function name and tried to execute the function inside my query. But instead of executing the function, the query returned the function call as a string. i.e. if function name is <code>func</code> then it returned <code>select 'func('id')'</code> as a string but I expected the function to execute. Can anyone tell what I am missing here. </p>