Update table with DML
Stay organized with collections
Save and categorize content based on your preferences.
Update data in a BigQuery table using a DML query.
Code sample
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],[],[[["\u003cp\u003eThis page demonstrates how to update data within a BigQuery table using a DML query.\u003c/p\u003e\n"],["\u003cp\u003eThe provided code samples illustrate the process in both Java and Python, showing how to execute the update operation.\u003c/p\u003e\n"],["\u003cp\u003eBoth code samples use a JSON file to load data into a BigQuery table, before implementing a DML statement that modifies the \u003ccode\u003eip_address\u003c/code\u003e column in that table.\u003c/p\u003e\n"],["\u003cp\u003eThe samples highlight the use of \u003ccode\u003eREGEXP_REPLACE\u003c/code\u003e within the DML query to mask the last octet of IP addresses, ensuring to only change that part of the string.\u003c/p\u003e\n"],["\u003cp\u003eBefore running the code samples, it's necessary to set up authentication and follow the relevant quickstart instructions for the client libraries, in order to be able to execute the code.\u003c/p\u003e\n"]]],[],null,[]]