I had this weird bug in my company's code from an SQL sentence, that was basically updating all the rows from a table when what we wanted was just to update a single one. The code was the following.
UPDATE table SET 'disconnections'=value WHERE 'connections'=(SELECT MAX('connections') FROM table)
Where the apostrophe surrounding the column names where obviously wrong. So this was updating all the rows in the table; we removed them and the sentence worked as expected. What was the deal with that?
Thanks!