# QueryColumnCount()

column count of given query

```
QueryColumnCount( query=query );
```

**Returns:** number

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| query | query | Yes | Query object to get data from. |  |

# Examples

```cfml
qry=queryNew("aaa,bbb,ccc,ddd,eee");

QueryAddRow(qry);
QuerySetCell(qry,"aaa","sss");
QueryAddRow(qry,3);
QuerySetCell(qry,"aaa",(1));
QueryAddRow(qry,1);

writeDump(queryColumnCount(qry));
```







# Categories

[Queries](../../categories/query.md)

# See Also

[query.columnCount()](../objects/query/columncount.md)