# QueryResult:fields()

> Create an iterator for all Fields (columns) in the DataSource.

> ### For an overview see page QueryResult

> ### Prototype

>         Iterator <Field>* fields( void );

> ### Arguments

> void | No arguments

> ### Description

> Create an iterator for all Fields (columns) in the DataSource.

> ### Returns

> An iterator over the vector of Fields or throws a RuntimeException in the case of an error.