不建议使用该视图,因为它只显示以前版本中可用的特权和权限。应更改您的应用程序改用 SYSUSERAUTHORITY 系统视图。
SYSUSERPERM 视图的每一行都描述一个用户 ID。
在以下的 SQL 语句中提供了组成该视图的表和列。要了解有关特定表或列的详细信息,请使用该视图定义下所提供的链接。
ALTER VIEW "SYS"."SYSUSERPERM" as select b.user_id, b.object_id, b.user_name, b.password, if exists(select * from SYS.ISYSUSERAUTHORITY where ISYSUSERAUTHORITY.user_id = b.user_id and ISYSUSERAUTHORITY.auth = 'RESOURCE') then 'Y' else 'N' endif as resourceauth, if exists(select * from SYS.ISYSUSERAUTHORITY where ISYSUSERAUTHORITY.user_id = b.user_id and ISYSUSERAUTHORITY.auth = 'DBA') then 'Y' else 'N' endif as dbaauth, 'N' as scheduleauth, if exists(select * from SYS.ISYSUSERAUTHORITY where ISYSUSERAUTHORITY.user_id = b.user_id and ISYSUSERAUTHORITY.auth = 'PUBLISH') then 'Y' else 'N' endif as publishauth, if exists(select * from SYS.ISYSUSERAUTHORITY where ISYSUSERAUTHORITY.user_id = b.user_id and ISYSUSERAUTHORITY.auth = 'REMOTE DBA') then 'Y' else 'N' endif as remotedbaauth, if exists(select * from SYS.ISYSUSERAUTHORITY where ISYSUSERAUTHORITY.user_id = b.user_id and ISYSUSERAUTHORITY.auth = 'GROUP') then 'Y' else 'N' endif as user_group, r.remarks from SYS.ISYSUSER as b left outer join SYS.ISYSREMARK as r on(b.object_id = r.object_id) |
![]() |
使用DocCommentXchange 讨论此页。
|
版权 © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0 |