Adds a row to a query, either by struct or array
querySetRow(query, [rowNumber,] rowData)
→ returns boolean
someQuery.setRow([rowNumber,] rowData)
0
Sets third row of query overwriting news entry
news = queryNew("id,title", "integer,varchar", [{"id"=1,"title"="Dewey defeats Truman"},{"id"=2,"title"="Men walk on Moon"},{"id"=3,"title"="Nixon Resigns"},{"id"=4,"title"="The Berlin Wall falls"}]);
querySetRow(news, 3, {"id"=5,"title"="The internet is born"});
writeDump(news);
Sets third row of query overwriting news entry
news = queryNew("id,title", "integer,varchar", [{"id"=1,"title"="Dewey defeats Truman"},{"id"=2,"title"="Men walk on Moon"},{"id"=3,"title"="Nixon Resigns"},{"id"=4,"title"="The Berlin Wall falls"}]);
news.setRow(3, {"id"=5,"title"="The internet is born"});
writeDump(news);
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.