# Columns proc (database query)

Source: https://ref.dm-lang.org/database/query/proc/Columns
Added in BYOND 506.

### Format
> `Columns()   
*or*  
 Columns(column)`

### Args
> column: The Nth column whose name should be read

Returns a list of column names for the current query, or the name of the Nth column.

You must call Execute() before calling Columns().

### See also
- [database query datum](https://ref.dm-lang.org/database/query/index.md)
- [Execute proc (database query)](https://ref.dm-lang.org/database/query/proc/Execute.md)
- [GetColumn proc (database query)](https://ref.dm-lang.org/database/query/proc/GetColumn.md)
- [GetRowData proc (database query)](https://ref.dm-lang.org/database/query/proc/GetRowData.md)
- [NextRow proc (database query)](https://ref.dm-lang.org/database/query/proc/NextRow.md)
