This is my example table:
+-----+----------+------+
| id | current | max |
+-----+----------+------+
| 1 | 20 | 100 |
| 2 | 50 | 50 |
+-----+----------+------+
I am in need of a query that will set the value of a row’s current column to its max column, but I can’t find a way to copy it over. This is my current query:
UPDATE `table` SET `current` = ??? WHERE `id` = 1
What would I replace ??? with to use that column’s value of 100?
Just set it to that column value, using the column name: