query.deleteColumn()

removes a row from a query and return removed row as array

query.deleteColumn( column=String )

Returns: Query

Argument Description
column
String, required

Specify the column name to delete from query

Examples

q = queryNew( "id,name","int,varchar",[{"id":"1","name":"one"},{"id":"2","name":"two"}]);
dump(q);
writeDump(q.deletecolumn("id"));
writeDump(q);

See also