I ran the following query on mysql by mistake, and mysql ran it without error:
UPDATE table SET col1='value1' AND col2='value2' WHERE ID='id'
Thie query should have been
UPDATE table SET col1='value1', col2='value2' WHERE ID='id'
So my question is: what did the first query with the ‘AND’ actually do? It seemed to set col1=’0′ for some reason, which seems strange. Is this just a bug or is this really a valid query?
This is what the query actually did: