UPDATE has three parts
UPDATE names the table, SET lists the column and its new value, WHERE picks the rows. Drop the WHERE and you meant one row but you changed all of them. This is the single most common accident in SQL, and it is why you reach for WHERE even when you think the table is small.
Change several columns
You can set more than one column in one UPDATE by separating them with commas:
UPDATE users SET name = "G.", id = 9 WHERE id = 2;
Both changes land on the same row in one step. The WHERE is checked once, against the row as it was before any change.