Client APIs
API Reference Overview
> **Deprecated.  ** This method has been deprecated. Prefer using `duckdb_result_get_chunk` instead.  
Returns the data of a specific column of a result in columnar format.  
The function returns a dense array which contains the result data. The exact type stored in the array depends on the
corresponding duckdb_type (as provided by `duckdb_column_type`). For the exact type by which the data should be
accessed, see the comments in [the types section](#types) or the `DUCKDB_TYPE` enum.  
For example, for a column of type `DUCKDB_TYPE_INTEGER`, rows can be accessed in the following manner:
```c
int32_t *data = (int32_t *) duckdb_column_data(&result, 0);
printf("Data for row %d: %d\n", row, data[row]);
```  
###### Syntax {#docs:api:c:api::syntax}  
```c
void *duckdb_column_data(
duckdb_result *result,
idx_t col
);
```  
###### Parameters {#docs:api:c:api::parameters}  
* `result`: The result object to fetch the column data from.
* `col`: The column index.  
###### Return Value {#docs:api:c:api::return-value}  
The column data of the specified column.  
<br>