CREATE ROLE rolename
GRANT CREATE TABLE TO rolename
GRANT CREATE VIEW TO rolename
GRANT CREATE FUNCTION TO rolename
GRANT CREATE SCHEMA TO rolename
GRANT CREATE DEFAULT TO rolename
GRANT VIEW DEFINITION ON SCHEMA :: schemaname TO rolename;
然后“打开表定义”给出:
无法从服务器
检索schemaname.table的定义
如果我这样做
GRANT VIEW DEFINITION TO rolename
然后我可以看到所有架构的表,视图等定义。