BigQuery IF字段存在然后

BigQuery IF字段存在然后,第1张

BigQuery IF字段存在然后

下面应该给你方向

SELECt * FROM(SELECt * FROM <somewhere w/o my_field>),(SELECt * FROM <somewhere with my_field>)

假设原始表()中有a,b和c作为字段-如果您需要将缺失值从NULL更改为0,则可以使用上面的内容(见下文):

SELECt a, b, c, COALESCE(my_field, 0) as my_fieldFROM(SELECt * FROM <somewhere w/o my_field>),(SELECt * FROM <somewhere with my_field>)


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/zaji/5649742.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-12-16
下一篇2022-12-16

发表评论

登录后才能评论

评论列表(0条)

    保存