Can you restrict updating a field without granting additional user rights?
Basically, a value in a string can only be set during an insert statement.
You can use the update trigger to prevent the value from updating.
Yes. If you grant only insert and select privileges. How:
insert
select
grant select, insert, update(message, time) on hibtest.message to 'worm'@'localhost' identified by 'worm'
... that way, the user can update the message and time columns.
message
time
Mysql distinguishes between insert privileges and update privileges, which will give the user the ability to insert, but not upgrade later.
see this link: http://dev.mysql.com/doc/refman/5.5/en/privileges-provided.html
Not suitable for your question: if you run mysqlisampack in a table, the table will become read-only.
This is good if you have a datawharehouse, which is just a link, but not very good if you just want to make a live column read-only.
Source: https://habr.com/ru/post/886149/More articles:How to print an object identifier? - c #Designing a user access class / permissions - designClassroom on the table? - htmlHow to create paging UIScrollView with "oversized" pages - iphoneFormat / Safe String for the "title" attribute in the anchor - htmlVideo hangs on camera switch with AVFoundation - objective-chttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/886151/jtabbedpane-transfer-focus-to-next-sheet&usg=ALkJrhjxQZtsEZBdK3EanCdBwFJ9rKrcHARecording from the front camera MUTE - videomysqldb interfaceError - pythonWhen is virtual inheritance a good idea? - c ++All Articles