SQL数据库权限授予grant

grant可授予的权限:
DDL:create、alter、drop
DML:select、insert、delete、update、index
createview、showview

对用户授权:
grant 权限0,权限1…
on table 表名/数据库名
to 用户0,用户1;

对用户授权并允许用户将权利授予他人:
grant 权限0,权限1…
on table 表名/数据库名
to 用户0,用户1
with grant option;

查看所有授权:
show grants;

猜你喜欢

转载自blog.csdn.net/dc12499574/article/details/121188043