You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UPDATE Singers s
SET
(DELETEFROMs.SingerInfo.Residence r WHEREr.City='Seattle'),
(UPDATEs.SingerInfo.Residence r SETr.end_year=2015WHEREr.City='Eugene'),
(INSERT s.Albums.Song VALUES ("songtitle: 'The Second Best Song'"))
WHERE SingerId =3ANDs.Albums.title ='Go! Go! Go!';
Note
The formal syntax is not yet well described in the Spanner DML syntax reference, but we can reference ZetaSQL DML syntax reference.
https://cloud.google.com/spanner/docs/reference/standard-sql/dml-syntax?hl=en#nested-updates-protocol-buffers
Note
The formal syntax is not yet well described in the Spanner DML syntax reference, but we can reference ZetaSQL DML syntax reference.
https://github.com/google/zetasql/blob/2024.11.1/docs/data-manipulation-language.md#update-statement
The text was updated successfully, but these errors were encountered: