QuerySetRow()
Adds a row to a query, either by struct or array
Introduced: 5.3.8.120
QuerySetRow( query=query, rowNumber=number, rowData=any );
Returns: Boolean
Examples
testQuery=queryNew("id,name", "integer,varchar",
[
{"id"=1,"name"="jenifer"},
{"id"=2,"name"="ajay"},
{"id"=3,"name"="john"},
{"id"=4,"name"="smith"}
]);
<span class="nf">querySetRow</span><span class="p">(</span><span class="nv">testQuery</span><span class="p">,</span> <span class="m">3</span><span class="p">,</span> <span class="p">{</span><span class="s2">"id"</span><span class="o">=</span><span class="m">5</span><span class="p">,</span><span class="s2">"name"</span><span class="o">=</span><span class="s2">"alpha"</span><span class="p">});</span>
<span class="nf">writeDump</span><span class="p">(</span><span class="nv">testQuery</span><span class="p">);</span>
See also
- Queries
- query.setRow()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)