Is it possible to get column name from a query, for example:
SELECT name AS EmployeeName FROM wh.employee
Is it possible to get EmployeeName in the return results. My current PHP Code:
$result = $this->bigQueryService->jobs->getQueryResults($this->projectId, $jobId)
$rows = $result->getRows();
if ($rows) {
foreach ($rows as $row) {
/** @var \Google_Service_Bigquery_TableCell $cell */
foreach ($row["f"] as $cell) {
print $cell->getV();
}
}
}
Basically, I want to get the EmployeeName from the query results, is this possible?