Home > Database > Mysql Tutorial > What permissions are required to use triggers?

What permissions are required to use triggers?

WBOY
Release: 2023-09-02 08:49:02
forward
843 people have browsed it

What permissions are required to use triggers?

We must have super privileges to create or destroy triggers with the help of CREATE or DROP statements. In addition to this, if the triggered statement uses OLD or NEW, then we also need some additional permissions-

  • Use SET NEW.column_name to assign the value of the column = value Then we must have the value of the column UPDATE permissions.
  • To use NEW.column_name in an expression to reference the new value of a column, we must have SELECT permission on the column.
  • To use NEW.column_name in an expression to reference the new value of a column, we must have SELECT permission on the column. li>

The above is the detailed content of What permissions are required to use triggers?. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template