【发布时间】:2020-11-25 15:25:25
【问题描述】:
如何打印所有列名?
Console.WriteLine(row.RawRow.ETag); 不起作用,它会打印空行
这是我目前的代码
static void Main(string[] args)
{
List<string> rows = new List<string>();
string projectId = "project-id 123";
var client = BigQueryClient.Create(projectId);
string sql = @"SELECT * FROM table";
var res = client.ExecuteQuery(sql, parameters: null);
foreach (var row in res)
Console.WriteLine(row["id"])
//rows.Add(row["id"])
}
【问题讨论】:
-
你能在 foreach 循环中检查调试器吗?
-
我找到了解决方案,谢谢
标签: c# google-bigquery