打印本文 打印本文 关闭窗口 关闭窗口
Sybase入门(二)
作者:武汉SEO闵涛  文章来源:敏韬网  点击数1851  更新时间:2009/4/22 22:54:50  文章录入:mintao  责任编辑:mintao
库所有者在他所拥有的数据库中,可以授予其他用户的权限有:
l CREATE TABLE ------------------- 建表
lCREATE DEFAULT ------------------ 建缺省
lCREATE RULE ------------------- 建规则
lCREATE PROCedure ------------------ 建存储过程
lCREATE VIEW ------------------- 建视图
lDUMP DATABASE ------------------- 备份数据库
lDUMP TRANsaction ------------------ 备份日志
C. 数据库对象所有者可以授予其他用户的操作权限有:
l SELECT
l UPDATE
l INSERT
l EXECute
l DELETE
l REFERENCE

例:授予zhang1在数据库tele114上建表,建视图,建存储过程;对表students有select,reference权;对name,native字段有update权。
1> use tele114
2> go
3> grant creat table,create procedure ,create view to zhang1
4> go
5> grant select,reference on students to zhang1 with grant option
6> go
7> grant update on students(name,native) to zhang1
8> go
9> sp_helprotect
10> go 


 

上一页  [1] [2] 

打印本文 打印本文 关闭窗口 关闭窗口