Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google BigQuery DML - Error while trying to run basic UPDATE

I am trying to run the following basic UPDATE statement

UPDATE [gcp-or:babynames.names_2014] SET name = "Emma B" WHERE name = "Emma"

However, I am getting the following error: "Query Failed Error: 1.1 - 1.76: Unrecognized token UPDATE"

Error

Any suggestions?

Thanks -Oscar

like image 389
Oscar Rodriguez Avatar asked Oct 20 '25 04:10

Oscar Rodriguez


1 Answers

You must use standard SQL for DML functionality. To enable standard SQL, see Enabling Standard SQL

the easiest way is as below

#standardSQL  
UPDATE `gcp-or.babynames.names_2014` SET name = "Emma B" WHERE name = "Emma"
like image 130
Mikhail Berlyant Avatar answered Oct 22 '25 05:10

Mikhail Berlyant



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!