QueryAddRow()
Adds rows to a query, either empty row(s) or you can add a row with data.
The number returned is the new row count of the query.
QueryAddRow( query=query, numberOrData=any );
Returns: Number
Examples
myQuery = queryNew( "id,name");
addedRows = queryAddRow(myQuery, 3); // will return 3
queryAddRow(myQuery, [17,'added via array notation']);
anotherRow = queryAddRow(myQuery); // will return 4
queryAddRow(myQuery, {
id:18,
name:'added via struct notation'
});
dump(myQuery);
See also
- Queries
- QuerySetCell()
- query.addRow()
- query.setCell()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)