Use Procedures to Provide Tailored Security

Procedures restrict the actions a user may take.

A user may have EXECUTE privilege on a procedure without having any privileges on the table or tables on which the procedure acts.

By default, procedures execute with the privileges of the procedure owner. For a procedure that updates a table, if the procedure owner has UPDATE privileges on the table, the user can execute the procedure. The owner of the procedure can restrict the procedure to execute with the privileges of the user executing the procedure by specifying SQL SECURITY INVOKER to a CREATE/ALTER PROCEDURE statement.