HOME/🔍 BigQuery/

🔍 エクスポート機能

Article Outline

BigQuery

|| MOTIVATION

export data options (
    uri='gs://エクスポート先のバケット名/csv/sql_*.csv.gz'
    , format='CSV'
    , overwrite=true
    , header=true
    , field_delimiter=',' -- default,
    , compression='GZIP'
) as with 
    target as (
        select * 
        from sample_dataset.sample_table
        order by id
    ) 
select * from target;

|| REFERENCE