About the historical version of the article, a very common feature, such as, Jane, Segmentfault, have the relevant historical version of the storage, this how to implement, give a reference or URL is ok.
Reply content:
About the historical version of the article, a very common feature, such as, Jane, Segmentfault, have the relevant historical version of the storage, this how to implement, give a reference or URL is ok.
When a database stores content, one more version number field is available. Insert a new record every time you update
This is the simplest way to implement the same as the upstairs said, add a version number. Create a new piece of data when you update it.
This, of course, can lead to larger space usage.
Another way is to do the child node tag, need to do a data structure to store.
This is a small footprint, and using XML to do it is very convenient and fast. (Of course, it is also possible to do the structure with JSON).
However, it is not recommended, this method will be a big problem accidentally.