Backing up a registry before updating it |
12/20/2020 01:31:28 | |
| PHPRunner General questions | ||
|
A
alfonso authorDevClub member
I have a table A with my clients. A table B where they are registered in another service. And a copy A_backup table of the records of the first. |
||
|
M
|
MikeT 12/20/2020 |
|
I'm not sure about the prupose of Table_A, but if understand correctly I'd simply triggers the database in table A both for before insert and before update. These triggers then automatically write the new (insert( or previous (update) records to tha backup table. |
|
|
A
|
alfonso authorDevClub member 12/21/2020 |
|
How can I do it? In Before add events of Table A? |
|
|
M
|
MikeT 12/21/2020 |
|
How can I do it? In Before add events of Table A?
|
|
|
|
Sergey Kornilov admin 12/21/2020 |
|
You can either use database triggers or use BeforeEdit event for that purpose. |
|