select * from [User] where PermissionTypes&1 =1
Result:
2、获取有Delete权限的所有用户:
复制代码 代码如下:
select * from [User] where PermissionTypes&8 =8
Result:
3、判断麒麟是否有有Delete权限
复制代码 代码如下:
if exists (select * from [User] where and PermissionTypes&8 =8)
print 'true'
else
print 'flase'