SQLServer与Oracle的对比(二)

2015-07-24 06:33:22 · 作者: · 浏览: 8
陆账号
drop Login 登录名称

2、创建用户:
create user 用户名 for/from Login 登陆名称

修改用户名
alter user 用户名 with name='新用户名'

删除用户名
drop user 用户名

授权限
grant select/update/delete/insert on 表名 to 用户名


oracle中:

创建用户语法:
create user 用户名
identified by 密码
default tablespace users
temporary tablespace temp
quota 10M on users

修改密码:
alter user 用户名 identified by 新密码

授予权限:
grant create session to 用户名

删除用户
drop user 用户名 cascade;

?