如何通过BigQuery中的WebUI导出现有表的架构? [英] How to export schema for the existing table through WebUI in BigQuery?
本文介绍了如何通过BigQuery中的WebUI导出现有表的架构?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想通过WebUI获取现有表的导出模式,然后在BigQuery中重新创建具有相同结构的新表.
I want to take the export schema for the existing table through WebUI and recreate a new table with the same structure in BigQuery.
我找不到在WebUI中导出架构的方法.
I could not find ways to export schema in WebUI.
推荐答案
我要做的方法是首先使用所需的数据创建查询,例如:
The way I'd do it is first create a query with the data that you want, for instance:
SELECT
fullvisitorid,
visitid
FROM `dataset.ga_sessions_20170703`
LIMIT 1
只带来一个结果.在显示选项
按钮中,您可以将结果的目的地选择为另一个表:
And bring just one result. In the Show Options
button, you can choose the destination of the results to be another table:
此后,您可以使用 DML语法:
DELETE FROM `new_table`
WHERE fullvisitorid = '1'
结果是一个新的空表,该表具有其他表中所需的架构.
The result is a new empty table with the desired schema from other table.
这篇关于如何通过BigQuery中的WebUI导出现有表的架构?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文