获取具有默认值的参数列表 [英] Get list of arguments with default value

查看:87
本文介绍了获取具有默认值的参数列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用ALL_ARGUMENTS来获取oracle 10g中的参数列表,但是我找不到参数的默认值.我能做到吗?

I use ALL_ARGUMENTS to get list of arguments in oracle 10g, but I can't find out is there default value for argument. Haw can I do it?

推荐答案

在视图SYS.ALL_ARGUMENTS中有一个名为DEFAULT_VALUE的列,但即使在11g中,它的类型也为LONG,解决和转换为CLOB.

In the view SYS.ALL_ARGUMENTS there is a column named DEFAULT_VALUE, but even in 11g it's type is LONG and is a headache to work around and convert to CLOB.

最简单"(不是最好)的方法是从该视图创建表,使用TO_LOB将该字段转换为CLOB并使用该表.

The "easiest" (not the best) way is to create a table from this view, using TO_LOB to convert this field to a CLOB and work with that.

这篇关于获取具有默认值的参数列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆