I'm query the result and I would like to copy customer_id
to new table field old_customer_id
and the customer_id
will replace the latest records.
+-------------+-----------------+
| customer_id | old_customer_id |
|-------------+-----------------+
| 5 | |
| 3 | |
| 1 | |
+-------------+-----------------+
After my query get the result like above, I would like to copy the customer_id
to old_customer_id
which it will
+-------------+-----------------+
| customer_id | old_customer_id |
|-------------+-----------------+
| 5 | 5 |
| 5 | 3 |
| 5 | 1 |
+-------------+-----------------+