By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
user_id | name | address | city | phone |
---|---|---|---|---|
1 | aaa | address1 | city1 | 011-2222222 |
2 | bbb | address2 | city2 | 011-3333333 |
3 | ccc | address3 | city3 | 011-4444444 |
4 | ddd | address4 | city4 | 011-5555555 |
5 | eee | address5 | city5 | 011-6666666 |
6 | fff | address6 | city6 | 011-7777777 |
user_id | name | address | city | phone |
---|---|---|---|---|
1 | ggg | address7 | city1 | 011-2222222 |
2 | bbb | address2 | city2 | 011-3333333 |
3 | ccc | address3 | city3 | 011-4444444 |
4 | ddd | address4 | city4 | 011-5555555 |
5 | eee | address8 | city5 | 123-4567890 |
6 | fff | address6 | city6 | 011-7777777 |
log_id | user_id | action | old_data | new_data | changed_date | view |
---|---|---|---|---|---|---|
1 | 1 | Changed aaa's name | aaa | ggg | 2022-06-22 11:12:43 | no |
2 | 1 | Changed aaa's address | address1 | address7 | 2022-06-22 11:12:43 | no |
4 | 5 | Changed eee's address | address5 | address8 | 2022-06-22 11:12:43 | no |
5 | 5 | Changed eee's phone | 011-6666666 | 123-4567890 | 2022-06-22 11:12:43 | no |