Im importing a csv file into a sql table, from there it is ok. Im also updating a column called date, so everytime an user import a file it also updates the date. But the problem is that the user needs to upload a file every month and I need to keep track of every upload into the table. I do not know how to do it. Can somebody give me a hint?
If you don't need to know changes in the file you can just use a column with an update date (you can use triggers for this or edit your column like: `tm` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP
). You could also store a number of "edit times" to see if it's the same as the number of months since the creation of the row. Otherwise, you should write a new row for every update and keep track of the user by an ID.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.