SECURITY INVOKER
indicates that the function is to be executed with the privileges of the user that calls it. That is the default.SECURITY DEFINER
specifies that the function is to be executed with the privileges of the user that owns it. For information on how to writeSECURITY DEFINER
functions safely, see below.-- from