O
O
Optimus2016-07-29 18:33:52
MySQL
Optimus, 2016-07-29 18:33:52

How to transfer value by sql query?

There are 2 tables, the structure is the same, the fields are slightly different:
The first table. 2 id columns | num
Second table. 2 id columns | numold
New value num arrives. Task: get the value num from the first table and transfer it to numold of the second table. After that, first enter a new value in num.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2016-07-29
Pyan @marrk2

BEFORE UPDATE trigger on the first table.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question