设为首页 加入收藏

TOP

sqlserver与oracle的区别(二)
2015-11-21 03:26:44 来源: 作者: 【 】 浏览:31
Tags:sqlserver oracle 区别
Current('a');
end;

--10.创建用户的方式不同
--sql server中
--1、创建登陆账号:sa-----123456
create Login 登陆名称 with password='登陆密码'

--修改登陆账户:
alter Login 登陆名称 with name='新登录名称' and password='新登录密码'
--禁用/启用登陆账号
alter Login 登录名称 disable(禁用)/enable(启用)
--删除登陆账号
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;


自己总结的一点,仅供参考
首页 上一页 1 2 下一页 尾页 2/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇使用excel进行数据挖掘(7)----.. 下一篇oraclX64和plsql杂记

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: