# QueryColumnArray()

return the column names as array

```
QueryColumnArray( query=query );
```

**Returns:** array

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| query | query | Yes | This is the query object from which you want to extract the column data. It should be a valid query object. |  |

# Examples

```cfml
qry=QueryNew("aaa");
arr1 = [];
QueryAddColumn(qry,"bb",arr1);
writeDump(queryColumnArray(qry));
```







# Categories

[Queries](../../categories/query.md), [Arrays](../../categories/array.md)

# See Also

[query.columnArray()](../objects/query/columnarray.md)