我在SQL Server数据库中有一个查询,它获取存储过程参数,如下所示:
SELECT
parameter.name,
types.name,
types.is_nullable
FROM
sys.parameters AS parameter
INNER JOIN
sys.procedures AS procedures ON parameter.object_id = procedures.object_id
INNER JOIN
sys.types AS types ON parameter.system_type_id = types.system_type_id
AND parameter.user_type_id = types.user_type_id
WHERE
procedures.name = 'UsernameSP'
返回结果集:
name name is_nullable
--------------------------------------
@Username nvarchar 1
@CreateDate datetime 1
我需要查询Oracle数据库。如何在Oracle中运行此查询?
答案 0 :(得分:2)
select argument_name,position, data_type
from user_arguments
where object_name = <your procedure>
order by position
假设您已登录到过程所在的当前架构。我认为oracle没有相当于“is_nullable”