QueryInsertAt()
Adds data (query,struct or array) into query.
Introduced: 6.0.0.16
QueryInsertAt( query=query, value=any, index=numeric );
Returns: Query
Examples
qry1 = queryNew( "name, age", "varchar, integer",
[
[ "Susi", 20 ],
[ "Urs", 24 ],
[ "Smith", 21 ],
[ "John", 26 ]
]);
qry2 = queryNew( "name, age", "varchar, integer",
[
[ "Jeni", 19 ]
]);
writeOutput("Before QueryInsert :");
writeDump(qry1);
<span class="nf">QueryInsertAt</span><span class="p">(</span> <span class="nv">qry1</span><span class="p">,</span> <span class="nv">qry2</span><span class="p">,</span> <span class="m">3</span> <span class="p">);</span>
<span class="nf">writeOutput</span><span class="p">(</span><span class="s2">"After QueryInsert :"</span><span class="p">);</span>
<span class="nf">writeDump</span><span class="p">(</span><span class="nv">qry1</span><span class="p">);</span>
See also
- Queries
- query.insertAt()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)