title: string query in a function in kdb
body: <pre><code>func:{[query] value query};
  </code></pre>
  
  <p>query is part of my function. I have add some like delete xxx, yyyy from (value query) and some manipulation. I am not sure why when I don't use value "query", the function doesn't work. It said it cannot find the table. So I have to use value query in the function and query is a parameter. I need to pass "select from tab" to the function.</p>
  
  <p>My questions is: how do I send if the filter is a string too?</p>
  
  <pre><code>func["select from tab where a="abc""] &lt;&lt;&lt; this does not work
  </code></pre>
  
  <p>How can I make string inside a string work?</p>
  
  <p>Also, not sure why if I do </p>
  
  <pre><code>func["select from tab where date = max date"]  it did not work due to length error
  but func["100#select from tab where date = max date"] it works ?
  </code></pre>
  
  <p>The whole function is </p>
  
  <pre><code>getTable:{[query]loadHDB[];.Q.view date where date &lt; .z.D-30;tab:(delete xxxx,yyyyy,sub,ID,subID,tID,subTID,text,gID from((value query)));remove[];update {";"sv @[s;where (s:";"vs x) like "cId=*";:;enlist""]}each eData from (update {";"sv @[s;where (s:";"vs x) like "AId=*";:;enlist""]}each eData from tab)}; 
  
  
  remove:{[]delete tab from `.};
  loadHDB:{[]value "\\l /hdb};
  </code></pre>