QueryClear()
Clears all rows from a query
Introduced: 6.0.0.15
QueryClear( query=query );
Returns: Query
Examples
qry = queryNew( "name, age", "varchar, integer",
[
[ "Susi", 20 ],
[ "Urs", 24 ],
[ "Smith", 21 ],
[ "John", 26 ]
]);
writeOutput("Before QueryClear :");
writeDump(qry);
<span class="nv">result</span> <span class="o">=</span> <span class="nf">queryClear</span><span class="p">(</span><span class="nv">qry</span><span class="p">);</span>
<span class="nf">writeOutput</span><span class="p">(</span><span class="s2">"After QueryClear :"</span><span class="p">);</span>
<span class="nf">writeDump</span><span class="p">(</span><span class="nv">qry</span><span class="p">);</span>
See also
- Queries
- query.clear()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)