Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b55b54 commit 692730dCopy full SHA for 692730d
spanner/cloud-client/snippets.py
@@ -831,7 +831,7 @@ def delete_data_with_dml(instance_id, database_id):
831
832
def delete_singers(transaction):
833
row_ct = transaction.execute_update(
834
- "DELETE Singers WHERE FirstName = 'Alice'"
+ "DELETE FROM Singers WHERE FirstName = 'Alice'"
835
)
836
837
print("{} record(s) deleted.".format(row_ct))
@@ -1055,7 +1055,7 @@ def delete_data_with_partitioned_dml(instance_id, database_id):
1055
database = instance.database(database_id)
1056
1057
row_ct = database.execute_partitioned_dml(
1058
- "DELETE Singers WHERE SingerId > 10"
+ "DELETE FROM Singers WHERE SingerId > 10"
1059
1060
1061
0 commit comments