create user zhansan identified by 123456;
授予连接数据库的权限
grant connect to zhansan;
授予数据库表的增、删、改、查权限
grant insert、delete、update、select on table to zhansan;
收回查询权限
revoke select on table from zhansan;
修改用户密码
alter user zhansan identified by 654321;
删除用户
drop user zhansan;
drop user zhansan cascade;(级联删除,删除用户的同时删除与用户有关联的表)
查询用户权限
select * from user_role_privs;