DotNetNuke(DNN) 中查询所有管理员的SQL语句

今天有人问,写了一个,贴出来也许有人能用上,不过这个语句是查询所有portal下的Administrator
   1: SELECT u.*
   2: FROM {databaseOwner}[{objectQualifier}Users] as u JOIN (
   3:             SELECT u.UserID
   4:             FROM {databaseOwner}[{objectQualifier}Roles] AS r JOIN {databaseOwner}[{objectQualifier}UserRoles] AS u
   5:             ON r.RoleID = u.RoleID
   6:             WHERE r.RoleName = 'Administrators'
   7:                ) AS r
   8: ON u.UserID = r.UserID
上一篇:.NET平台下的微信SDK(Rabbit.WeiXin)开源发布


下一篇:带你读《扬帆远航 5G 融合应用实践精编》第一章5G助力经济社会数字化转型1.4