Google BigQuery Delete Rows?

前端 未结 6 1231
挽巷
挽巷 2020-12-03 01:25

Anyone know of any plans to add support for delete parts of data from a table in Google Bigquery? The issue we have right now is we are using it for analytics of data point

6条回答
  •  南方客
    南方客 (楼主)
    2020-12-03 02:00

    For deleting records in Big query, you have to first enable standard sql.

    Steps for enabling Standard sql

    1. Open the BigQuery web UI.
    2. Click Compose Query.
    3. Click Show Options.
    4. Uncheck the Use Legacy SQL checkbox.

    This will enable the the BigQuery Data Manipulation Language (DML) to update, insert, and delete data from the BigQuery tables

    Now, you can write the plain SQL query to delete the record(s)

    DELETE [FROM] target_name [alias] WHERE condition
    

    You can refer: https://cloud.google.com/bigquery/docs/reference/standard-sql/dml-syntax#delete_statement

提交回复
热议问题