yun*_*ula 2 sql oracle user-defined-types
我想生成一个 PL/SQL 脚本,该脚本提供用户定义的对象类型的属性名称。我可以看到定义的对象类型,但找不到该对象的属性名称。
这适用于 Oracle 11g 并且应该适用于早期版本
select attr_name
from all_type_attrs
where owner = YourSchemaName
and type_name = YourTypeName
Run Code Online (Sandbox Code Playgroud)
如果此对象位于另一个用户的架构中,您需要拥有执行权限才能在 all_type_attrs 中看到它。
(为了清楚地说明 APC 评论中的权限而进行了编辑)