我必须从BigQuery查询一些数据。代码如下:
function GetQuery(employeeId) {
var projectId = 'xxxx-xx-xxx';
var request = {
query: 'SELECT HOD_Email ' +
'FROM [xxxx-xx-xxx.table_name.dataset] ' +
'WHERE EmployeeId = employeeId'
};
}
我认为它不起作用
答案 0 :(得分:1)
代替
'WHERE EmployeeId = employeeId'
尝试
'WHERE EmployeeId = "' + employeeId + '"'