Oracle PL/SQL:如何打印表类型 [英] Oracle PL/SQL: How to print a table type
本文介绍了Oracle PL/SQL:如何打印表类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试打印table type
进行调试,但不知道如何.我尝试了以下两种方法,两种方法都不起作用:
I am trying to print an table type
for debugging purposes, but don't know how. I tried the following two methods, neither of which work:
dbms_output.put_line (V_TEMP_TABTYPE(1));
dbms_output.put_line (V_TEMP_TABTYPE);
生成的错误是:PLS-00306: wrong number or types of arguments in call to
.
那么,如何打印table type
的内容?还是有其他显示内容的方式?
So, how can I print the contents of a table type
? Or is there a different way to display the contents?
它引用的table_type
和type
是:
create or replace TYPE MY_TYPE IS OBJECT( MyString Varchar(20)
, counter Number(9) );
create or replace TYPE MY_TABTYPE AS TABLE OF MY_TYPE;
推荐答案
dbms_output.put_line(v_temp_tabtype(i).myString);
这篇关于Oracle PL/SQL:如何打印表类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文