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
This is not good in my opinion because Comparison refers to WHERE comparison statements. The correct way to do this should be with the Assignment class, but it is just for comparisons with :=. If I change the SQL query to:
sql_query="""UPDATE Customers SET ContactName := 'Alfred Schmidt', City := 'Frankfurt' WHERE CustomerID = 1 AND CustomerName = 'test'"""
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have some MySQL update statements:
I extracted the set values successfully using this function:
This is not good in my opinion because
Comparison
refers toWHERE
comparison statements. The correct way to do this should be with the Assignment class, but it is just for comparisons with:=
. If I change the SQL query to:then I could write the function as:
This seems more appropriate. Is it difficult to mark
ContactName = 'Alfred Schmidt'
asAssignment
instead ofComparison
if it has aSET
prefix?Beta Was this translation helpful? Give feedback.
All reactions