Is it possible to declare that a column in MySQL should be unmodifiable once initially set? I have a column that has the following definition: created timestamp default current_timestamp and I’d like to make sure that nobody messes with it after my rows are created.
Is it possible to declare that a column in MySQL should be unmodifiable once
Share
You can accomplish this using a
BEFORE UPDATEtrigger: