query.clear()

Clears all rows from a query

Introduced: 6.0.0.15

query.clear( )

Returns: Query

This function does not take any arguments.

Examples

qry = queryNew( "name, age", "varchar, integer",
        [
            [ "Susi", 20 ],
            [ "Urs", 24 ],
            [ "Smith", 21 ],
            [ "John", 26 ]
        ]);
    writeOutput("Before QueryClear :");
    writeDump(qry);
    result = qry.clear();
    writeOutput("After QueryClear :");
    writeDump(qry);

See also