Deletes a row within a query object.
queryDeleteRow(query [, row])
→ returns boolean
query.deleteRow([row])
-9999
Builds a simple query and removes the last row by not specifying a row index.
news = queryNew("id,title", "integer,varchar", [ {"id":1,"title":"Dewey defeats Truman"}, {"id":2,"title":"Man walks on Moon"} ]);
queryDeleteRow(news);
writeOutput(news['title'][1]);
Expected Result: Dewey defeats Truman
Builds a simple query and removes one of the rows.
news = queryNew("id,title", "integer,varchar", [ {"id":1,"title":"Dewey defeats Truman"}, {"id":2,"title":"Man walks on Moon"} ]);
queryDeleteRow(news, 1);
writeOutput(news['title'][1]);
Expected Result: Man walks on Moon
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.