简体   繁体   中英

what database support configurations to make some fields/column cannot be updated and forbid record deletion?

as the title, what database support configurations to make some fields/column cannot be updated and forbid record deletion?

concretely, is there any database or database usage support the function that I can config some fields/column cannot be updated, and records in database cannot be deleted.

I know this can be done by upper code logic, however, we only allow to do it at database level.

fixed, mysql trigger can satisfy my requirements.

more info about mysql trigger can refer to this usecase .

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM