'AND' in mysql update request

I executed the following query on mysql by mistake, and mysql executed it without errors:

UPDATE table SET col1='value1' AND col2='value2' WHERE ID='id' 

The request must be

 UPDATE table SET col1='value1', col2='value2' WHERE ID='id' 

So my question is: what did the first request do with an β€œAND” in fact? For some reason, it seemed like col1 = '0', which seems weird. Is this just a mistake or is this a valid request?

+4
source share
1 answer

This is what the request really made:

 UPDATE table SET col1=('value1' AND col2='value2') WHERE ID='id' 
+3
source

All Articles