除了Google BigQuery中的一些,请选择所有列? [英] Select All Columns Except Some in Google BigQuery?

查看:192
本文介绍了除了Google BigQuery中的一些,请选择所有列?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在BigQuery中,除了[x,y,z列名称]之外,还有其他选择方法吗?我看到一些针对MySQL的解决方案,但不确定它是否适用于BQ。

Is there a way to Select * except [x,y,z column names] in BigQuery? I see some solutions for MySQL but not sure if it applies to BQ.

谢谢。

推荐答案

方言,将允许它。但由于这是反复发出的请求,我们添加了工作项以支持

There is nothing in current BigQuery SQL dialect that will allow it. But since this is recurring request, we have added work item to support

SELECT * EXCEPT (a, b, c) FROM ...

更新:现在BigQuery标准SQL中提供了此功能。详情请参阅 https://cloud.google.com/bigquery/sql-reference / enable-standard-sql
使用公共维基百科表的示例 - 选择除标题和评论外的所有列:

Update: This functionality is now available in BigQuery standard SQL. Details at https://cloud.google.com/bigquery/sql-reference/enabling-standard-sql Example using public wikipedia table - select all columns except title and comment:

select * except(title, comment) from publicdata.samples.wikipedia limit 10

这篇关于除了Google BigQuery中的一些,请选择所有列?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆