Hello everyone,
I have a question that I have thought for a long time. We have database tables, rows and data inside them.
Let's think about a simple table that keeps the items that in my pocket.
İtems_in_my_pocket
id item_name item_price
0 cellphone $150
1 money $70
2 einac(just kidding) $500,000
I want to update 2nd and 3rd row. I decide the row via id.
PseudeCode
Update the row that has id = 2 set item_pice to $0.
Update the row that has id = 3 set item_name to wallet and item_pice to $20.
How could I know the old values of these data? If I wanted to create a log panel, then it would
contain you updated einac(just kidding) to wallet
and so on..
What are the possible solutions? Does this belong to DBMS or SQL or the code itself(c#, java, php etc.)
Thanks.
Emre.