Query a stored procedure for it's parameter names and types

落花浮王杯 提交于 2019-12-11 06:46:26

问题


Is there any easy way to query a stored procedure (Oracle - PL/SQL) for what parameters it expects?

I know that I can query USER_SOURCE to get the whole procedure but I'd then have to parse the whole procedure, and if the parameter is of type [table].[column]%TYPE I'd then have to query the table schema as well.

Either using just sql or via ODP.Net.


回答1:


The USER_ARGUMENTS view will give you the details.




回答2:


Another method is to call DBMS_DESCRIBE.DESCRIBE_PROCEDURE.



来源:https://stackoverflow.com/questions/3062623/query-a-stored-procedure-for-its-parameter-names-and-types

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!