PLS-00306 error for Associative array with user created Record
I am calling a function with an associative array as parameter in a package. When this associative array is defined using table rowtype, the package compiles properly, whereas, if I use user created record to declare associative array, then the package compiles with error PLS 00306.
Working block of associative array declaration:
CREATE OR REPLACE PACKAGE IST.ACCOUNT_UNBILLED_USAGE AS
type row_tab is table of Account_Unbilled_Usage_GTT%rowtype index by binary_integer;
PROCEDURE queryUnbilledSummaryTotals (
e2eData IN OUT VARCHAR2,
p_Account_num IN account.account_num%type,
p_Account_Summary_Boo IN VARCHAR2,
p_Product_Summary_Boo IN VARCHAR2,
p_Event_Source IN VARCHAR2,
rws out nocopy row_tab
);
END;
/
Issue causing associative array declaration:
/* Formatted on 28/11/2018 14:39:24 (QP5 v5.267.14150.38573) */
CREATE OR REPLACE PACKAGE IST.ACCOUNT_UNBILLED_USAGE
AS
TYPE accountUnbilledUsageRecTyp IS RECORD
(
COL1 VARCHAR2 (50 BYTE),
COL2 VARCHAR2 (50 BYTE),
COL3 VARCHAR2 (50 BYTE),
COL4 VARCHAR2 (50 BYTE),
COL5 VARCHAR2 (50 BYTE),
COL6 VARCHAR2 (50 BYTE),
COL7 VARCHAR2 (50 BYTE),
COL8 VARCHAR2 (50 BYTE),
COL9 VARCHAR2 (50 BYTE),
COL10 VARCHAR2 (50 BYTE),
COL11 VARCHAR2 (50 BYTE),
COL12 VARCHAR2 (50 BYTE),
COL13 VARCHAR2 (50 BYTE),
COL14 VARCHAR2 (50 BYTE),
COL15 VARCHAR2 (50 BYTE),
COL16 VARCHAR2 (50 BYTE),
COL17 VARCHAR2 (50 BYTE),
COL18 VARCHAR2 (50 BYTE),
COL19 VARCHAR2 (50 BYTE),
COL20 VARCHAR2 (50 BYTE),
COL21 VARCHAR2 (50 BYTE),
COL22 VARCHAR2 (50 BYTE),
COL23 VARCHAR2 (50 BYTE),
COL24 VARCHAR2 (50 BYTE),
COL25 VARCHAR2 (50 BYTE),
COL26 VARCHAR2 (50 BYTE),
COL27 VARCHAR2 (50 BYTE),
COL28 VARCHAR2 (50 BYTE),
COL29 VARCHAR2 (50 BYTE),
COL30 VARCHAR2 (50 BYTE),
COL31 VARCHAR2 (50 BYTE),
COL32 VARCHAR2 (50 BYTE),
COL33 VARCHAR2 (50 BYTE),
ERROR_NO NUMBER (3),
COL34 VARCHAR2 (50 BYTE)
);
TYPE row_tab IS TABLE OF accountUnbilledUsageRecTyp
INDEX BY PLS_INTEGER;
PROCEDURE queryUnbilledSummaryTotals (
e2eData IN OUT VARCHAR2,
p_Account_num IN account.account_num%TYPE,
p_Account_Summary_Boo IN VARCHAR2,
p_Product_Summary_Boo IN VARCHAR2,
p_Event_Source IN VARCHAR2,
rws OUT NOCOPY row_tab);
END;
/
Other package which uses this associative array:
FUNCTION PL_TO_SQL0(aPlsqlItem IST.ACCOUNT_UNBILLED_USAGE.ROW_TAB)
RETURN ACCOUNT_UNBILLED_X528946X1X6 IS
aSqlItem ACCOUNT_UNBILLED_X528946X1X6;
BEGIN
-- initialize the table
aSqlItem := ACCOUNT_UNBILLED_X528946X1X6();
IF aPlsqlItem IS NOT NULL THEN
aSqlItem.EXTEND(aPlsqlItem.COUNT);
IF aPlsqlItem.COUNT>0 THEN
FOR I IN aPlsqlItem.FIRST..aPlsqlItem.LAST LOOP
aSqlItem(I + 1 - aPlsqlItem.FIRST) := PL_TO_SQL1(aPlsqlItem(I));
END LOOP;
END IF;
END IF;
RETURN aSqlItem;
END PL_TO_SQL0;
ACCOUNT_UNBILLED_X528946X1X6 - this is a nested table of same structure.
For below line , I am getting the error:
PLS-00306: wrong number or types of arguments in call to 'PL_TO_SQL1'
aSqlItem(I + 1 - aPlsqlItem.FIRST) := PL_TO_SQL1(aPlsqlItem(I));
Could anyone help me out to resolve this problem?
oracle plsql associative-array
add a comment |
I am calling a function with an associative array as parameter in a package. When this associative array is defined using table rowtype, the package compiles properly, whereas, if I use user created record to declare associative array, then the package compiles with error PLS 00306.
Working block of associative array declaration:
CREATE OR REPLACE PACKAGE IST.ACCOUNT_UNBILLED_USAGE AS
type row_tab is table of Account_Unbilled_Usage_GTT%rowtype index by binary_integer;
PROCEDURE queryUnbilledSummaryTotals (
e2eData IN OUT VARCHAR2,
p_Account_num IN account.account_num%type,
p_Account_Summary_Boo IN VARCHAR2,
p_Product_Summary_Boo IN VARCHAR2,
p_Event_Source IN VARCHAR2,
rws out nocopy row_tab
);
END;
/
Issue causing associative array declaration:
/* Formatted on 28/11/2018 14:39:24 (QP5 v5.267.14150.38573) */
CREATE OR REPLACE PACKAGE IST.ACCOUNT_UNBILLED_USAGE
AS
TYPE accountUnbilledUsageRecTyp IS RECORD
(
COL1 VARCHAR2 (50 BYTE),
COL2 VARCHAR2 (50 BYTE),
COL3 VARCHAR2 (50 BYTE),
COL4 VARCHAR2 (50 BYTE),
COL5 VARCHAR2 (50 BYTE),
COL6 VARCHAR2 (50 BYTE),
COL7 VARCHAR2 (50 BYTE),
COL8 VARCHAR2 (50 BYTE),
COL9 VARCHAR2 (50 BYTE),
COL10 VARCHAR2 (50 BYTE),
COL11 VARCHAR2 (50 BYTE),
COL12 VARCHAR2 (50 BYTE),
COL13 VARCHAR2 (50 BYTE),
COL14 VARCHAR2 (50 BYTE),
COL15 VARCHAR2 (50 BYTE),
COL16 VARCHAR2 (50 BYTE),
COL17 VARCHAR2 (50 BYTE),
COL18 VARCHAR2 (50 BYTE),
COL19 VARCHAR2 (50 BYTE),
COL20 VARCHAR2 (50 BYTE),
COL21 VARCHAR2 (50 BYTE),
COL22 VARCHAR2 (50 BYTE),
COL23 VARCHAR2 (50 BYTE),
COL24 VARCHAR2 (50 BYTE),
COL25 VARCHAR2 (50 BYTE),
COL26 VARCHAR2 (50 BYTE),
COL27 VARCHAR2 (50 BYTE),
COL28 VARCHAR2 (50 BYTE),
COL29 VARCHAR2 (50 BYTE),
COL30 VARCHAR2 (50 BYTE),
COL31 VARCHAR2 (50 BYTE),
COL32 VARCHAR2 (50 BYTE),
COL33 VARCHAR2 (50 BYTE),
ERROR_NO NUMBER (3),
COL34 VARCHAR2 (50 BYTE)
);
TYPE row_tab IS TABLE OF accountUnbilledUsageRecTyp
INDEX BY PLS_INTEGER;
PROCEDURE queryUnbilledSummaryTotals (
e2eData IN OUT VARCHAR2,
p_Account_num IN account.account_num%TYPE,
p_Account_Summary_Boo IN VARCHAR2,
p_Product_Summary_Boo IN VARCHAR2,
p_Event_Source IN VARCHAR2,
rws OUT NOCOPY row_tab);
END;
/
Other package which uses this associative array:
FUNCTION PL_TO_SQL0(aPlsqlItem IST.ACCOUNT_UNBILLED_USAGE.ROW_TAB)
RETURN ACCOUNT_UNBILLED_X528946X1X6 IS
aSqlItem ACCOUNT_UNBILLED_X528946X1X6;
BEGIN
-- initialize the table
aSqlItem := ACCOUNT_UNBILLED_X528946X1X6();
IF aPlsqlItem IS NOT NULL THEN
aSqlItem.EXTEND(aPlsqlItem.COUNT);
IF aPlsqlItem.COUNT>0 THEN
FOR I IN aPlsqlItem.FIRST..aPlsqlItem.LAST LOOP
aSqlItem(I + 1 - aPlsqlItem.FIRST) := PL_TO_SQL1(aPlsqlItem(I));
END LOOP;
END IF;
END IF;
RETURN aSqlItem;
END PL_TO_SQL0;
ACCOUNT_UNBILLED_X528946X1X6 - this is a nested table of same structure.
For below line , I am getting the error:
PLS-00306: wrong number or types of arguments in call to 'PL_TO_SQL1'
aSqlItem(I + 1 - aPlsqlItem.FIRST) := PL_TO_SQL1(aPlsqlItem(I));
Could anyone help me out to resolve this problem?
oracle plsql associative-array
Can you post the code for PL_TO_SQL1 ?
– SmartDumb
Jan 4 at 7:59
add a comment |
I am calling a function with an associative array as parameter in a package. When this associative array is defined using table rowtype, the package compiles properly, whereas, if I use user created record to declare associative array, then the package compiles with error PLS 00306.
Working block of associative array declaration:
CREATE OR REPLACE PACKAGE IST.ACCOUNT_UNBILLED_USAGE AS
type row_tab is table of Account_Unbilled_Usage_GTT%rowtype index by binary_integer;
PROCEDURE queryUnbilledSummaryTotals (
e2eData IN OUT VARCHAR2,
p_Account_num IN account.account_num%type,
p_Account_Summary_Boo IN VARCHAR2,
p_Product_Summary_Boo IN VARCHAR2,
p_Event_Source IN VARCHAR2,
rws out nocopy row_tab
);
END;
/
Issue causing associative array declaration:
/* Formatted on 28/11/2018 14:39:24 (QP5 v5.267.14150.38573) */
CREATE OR REPLACE PACKAGE IST.ACCOUNT_UNBILLED_USAGE
AS
TYPE accountUnbilledUsageRecTyp IS RECORD
(
COL1 VARCHAR2 (50 BYTE),
COL2 VARCHAR2 (50 BYTE),
COL3 VARCHAR2 (50 BYTE),
COL4 VARCHAR2 (50 BYTE),
COL5 VARCHAR2 (50 BYTE),
COL6 VARCHAR2 (50 BYTE),
COL7 VARCHAR2 (50 BYTE),
COL8 VARCHAR2 (50 BYTE),
COL9 VARCHAR2 (50 BYTE),
COL10 VARCHAR2 (50 BYTE),
COL11 VARCHAR2 (50 BYTE),
COL12 VARCHAR2 (50 BYTE),
COL13 VARCHAR2 (50 BYTE),
COL14 VARCHAR2 (50 BYTE),
COL15 VARCHAR2 (50 BYTE),
COL16 VARCHAR2 (50 BYTE),
COL17 VARCHAR2 (50 BYTE),
COL18 VARCHAR2 (50 BYTE),
COL19 VARCHAR2 (50 BYTE),
COL20 VARCHAR2 (50 BYTE),
COL21 VARCHAR2 (50 BYTE),
COL22 VARCHAR2 (50 BYTE),
COL23 VARCHAR2 (50 BYTE),
COL24 VARCHAR2 (50 BYTE),
COL25 VARCHAR2 (50 BYTE),
COL26 VARCHAR2 (50 BYTE),
COL27 VARCHAR2 (50 BYTE),
COL28 VARCHAR2 (50 BYTE),
COL29 VARCHAR2 (50 BYTE),
COL30 VARCHAR2 (50 BYTE),
COL31 VARCHAR2 (50 BYTE),
COL32 VARCHAR2 (50 BYTE),
COL33 VARCHAR2 (50 BYTE),
ERROR_NO NUMBER (3),
COL34 VARCHAR2 (50 BYTE)
);
TYPE row_tab IS TABLE OF accountUnbilledUsageRecTyp
INDEX BY PLS_INTEGER;
PROCEDURE queryUnbilledSummaryTotals (
e2eData IN OUT VARCHAR2,
p_Account_num IN account.account_num%TYPE,
p_Account_Summary_Boo IN VARCHAR2,
p_Product_Summary_Boo IN VARCHAR2,
p_Event_Source IN VARCHAR2,
rws OUT NOCOPY row_tab);
END;
/
Other package which uses this associative array:
FUNCTION PL_TO_SQL0(aPlsqlItem IST.ACCOUNT_UNBILLED_USAGE.ROW_TAB)
RETURN ACCOUNT_UNBILLED_X528946X1X6 IS
aSqlItem ACCOUNT_UNBILLED_X528946X1X6;
BEGIN
-- initialize the table
aSqlItem := ACCOUNT_UNBILLED_X528946X1X6();
IF aPlsqlItem IS NOT NULL THEN
aSqlItem.EXTEND(aPlsqlItem.COUNT);
IF aPlsqlItem.COUNT>0 THEN
FOR I IN aPlsqlItem.FIRST..aPlsqlItem.LAST LOOP
aSqlItem(I + 1 - aPlsqlItem.FIRST) := PL_TO_SQL1(aPlsqlItem(I));
END LOOP;
END IF;
END IF;
RETURN aSqlItem;
END PL_TO_SQL0;
ACCOUNT_UNBILLED_X528946X1X6 - this is a nested table of same structure.
For below line , I am getting the error:
PLS-00306: wrong number or types of arguments in call to 'PL_TO_SQL1'
aSqlItem(I + 1 - aPlsqlItem.FIRST) := PL_TO_SQL1(aPlsqlItem(I));
Could anyone help me out to resolve this problem?
oracle plsql associative-array
I am calling a function with an associative array as parameter in a package. When this associative array is defined using table rowtype, the package compiles properly, whereas, if I use user created record to declare associative array, then the package compiles with error PLS 00306.
Working block of associative array declaration:
CREATE OR REPLACE PACKAGE IST.ACCOUNT_UNBILLED_USAGE AS
type row_tab is table of Account_Unbilled_Usage_GTT%rowtype index by binary_integer;
PROCEDURE queryUnbilledSummaryTotals (
e2eData IN OUT VARCHAR2,
p_Account_num IN account.account_num%type,
p_Account_Summary_Boo IN VARCHAR2,
p_Product_Summary_Boo IN VARCHAR2,
p_Event_Source IN VARCHAR2,
rws out nocopy row_tab
);
END;
/
Issue causing associative array declaration:
/* Formatted on 28/11/2018 14:39:24 (QP5 v5.267.14150.38573) */
CREATE OR REPLACE PACKAGE IST.ACCOUNT_UNBILLED_USAGE
AS
TYPE accountUnbilledUsageRecTyp IS RECORD
(
COL1 VARCHAR2 (50 BYTE),
COL2 VARCHAR2 (50 BYTE),
COL3 VARCHAR2 (50 BYTE),
COL4 VARCHAR2 (50 BYTE),
COL5 VARCHAR2 (50 BYTE),
COL6 VARCHAR2 (50 BYTE),
COL7 VARCHAR2 (50 BYTE),
COL8 VARCHAR2 (50 BYTE),
COL9 VARCHAR2 (50 BYTE),
COL10 VARCHAR2 (50 BYTE),
COL11 VARCHAR2 (50 BYTE),
COL12 VARCHAR2 (50 BYTE),
COL13 VARCHAR2 (50 BYTE),
COL14 VARCHAR2 (50 BYTE),
COL15 VARCHAR2 (50 BYTE),
COL16 VARCHAR2 (50 BYTE),
COL17 VARCHAR2 (50 BYTE),
COL18 VARCHAR2 (50 BYTE),
COL19 VARCHAR2 (50 BYTE),
COL20 VARCHAR2 (50 BYTE),
COL21 VARCHAR2 (50 BYTE),
COL22 VARCHAR2 (50 BYTE),
COL23 VARCHAR2 (50 BYTE),
COL24 VARCHAR2 (50 BYTE),
COL25 VARCHAR2 (50 BYTE),
COL26 VARCHAR2 (50 BYTE),
COL27 VARCHAR2 (50 BYTE),
COL28 VARCHAR2 (50 BYTE),
COL29 VARCHAR2 (50 BYTE),
COL30 VARCHAR2 (50 BYTE),
COL31 VARCHAR2 (50 BYTE),
COL32 VARCHAR2 (50 BYTE),
COL33 VARCHAR2 (50 BYTE),
ERROR_NO NUMBER (3),
COL34 VARCHAR2 (50 BYTE)
);
TYPE row_tab IS TABLE OF accountUnbilledUsageRecTyp
INDEX BY PLS_INTEGER;
PROCEDURE queryUnbilledSummaryTotals (
e2eData IN OUT VARCHAR2,
p_Account_num IN account.account_num%TYPE,
p_Account_Summary_Boo IN VARCHAR2,
p_Product_Summary_Boo IN VARCHAR2,
p_Event_Source IN VARCHAR2,
rws OUT NOCOPY row_tab);
END;
/
Other package which uses this associative array:
FUNCTION PL_TO_SQL0(aPlsqlItem IST.ACCOUNT_UNBILLED_USAGE.ROW_TAB)
RETURN ACCOUNT_UNBILLED_X528946X1X6 IS
aSqlItem ACCOUNT_UNBILLED_X528946X1X6;
BEGIN
-- initialize the table
aSqlItem := ACCOUNT_UNBILLED_X528946X1X6();
IF aPlsqlItem IS NOT NULL THEN
aSqlItem.EXTEND(aPlsqlItem.COUNT);
IF aPlsqlItem.COUNT>0 THEN
FOR I IN aPlsqlItem.FIRST..aPlsqlItem.LAST LOOP
aSqlItem(I + 1 - aPlsqlItem.FIRST) := PL_TO_SQL1(aPlsqlItem(I));
END LOOP;
END IF;
END IF;
RETURN aSqlItem;
END PL_TO_SQL0;
ACCOUNT_UNBILLED_X528946X1X6 - this is a nested table of same structure.
For below line , I am getting the error:
PLS-00306: wrong number or types of arguments in call to 'PL_TO_SQL1'
aSqlItem(I + 1 - aPlsqlItem.FIRST) := PL_TO_SQL1(aPlsqlItem(I));
Could anyone help me out to resolve this problem?
oracle plsql associative-array
oracle plsql associative-array
edited Jan 4 at 7:50
Preetham C Machado
asked Jan 3 at 7:57
Preetham C MachadoPreetham C Machado
11
11
Can you post the code for PL_TO_SQL1 ?
– SmartDumb
Jan 4 at 7:59
add a comment |
Can you post the code for PL_TO_SQL1 ?
– SmartDumb
Jan 4 at 7:59
Can you post the code for PL_TO_SQL1 ?
– SmartDumb
Jan 4 at 7:59
Can you post the code for PL_TO_SQL1 ?
– SmartDumb
Jan 4 at 7:59
add a comment |
1 Answer
1
active
oldest
votes
Just remove %TYPE
in second declaration and everything works, like in this example:
create table test_tbl(col1, error_no) as (select 'PQR', 7 from dual);
declare
type rec is record(col1 varchar2(50), error_no number(3));
type row_tab is table of rec index by binary_integer; -- <-- here don't use rec%type
v_rws row_tab;
procedure p1(rws out row_tab) is
begin
select col1, error_no bulk collect into rws from test_tbl;
end p1;
begin
p1(v_rws);
for i in 1..v_rws.count loop
dbms_output.put_line(v_rws(i).col1);
end loop;
end;
Thanks for the reply. That %TYPE was included by mistake. Even without that, the other function is throwing error. Note that, the function is a standalone function. When we try to use associative array from standalone function or function from different package, we get wrong type or number of argument error.
– Preetham C Machado
Jan 3 at 14:36
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54018362%2fpls-00306-error-for-associative-array-with-user-created-record%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Just remove %TYPE
in second declaration and everything works, like in this example:
create table test_tbl(col1, error_no) as (select 'PQR', 7 from dual);
declare
type rec is record(col1 varchar2(50), error_no number(3));
type row_tab is table of rec index by binary_integer; -- <-- here don't use rec%type
v_rws row_tab;
procedure p1(rws out row_tab) is
begin
select col1, error_no bulk collect into rws from test_tbl;
end p1;
begin
p1(v_rws);
for i in 1..v_rws.count loop
dbms_output.put_line(v_rws(i).col1);
end loop;
end;
Thanks for the reply. That %TYPE was included by mistake. Even without that, the other function is throwing error. Note that, the function is a standalone function. When we try to use associative array from standalone function or function from different package, we get wrong type or number of argument error.
– Preetham C Machado
Jan 3 at 14:36
add a comment |
Just remove %TYPE
in second declaration and everything works, like in this example:
create table test_tbl(col1, error_no) as (select 'PQR', 7 from dual);
declare
type rec is record(col1 varchar2(50), error_no number(3));
type row_tab is table of rec index by binary_integer; -- <-- here don't use rec%type
v_rws row_tab;
procedure p1(rws out row_tab) is
begin
select col1, error_no bulk collect into rws from test_tbl;
end p1;
begin
p1(v_rws);
for i in 1..v_rws.count loop
dbms_output.put_line(v_rws(i).col1);
end loop;
end;
Thanks for the reply. That %TYPE was included by mistake. Even without that, the other function is throwing error. Note that, the function is a standalone function. When we try to use associative array from standalone function or function from different package, we get wrong type or number of argument error.
– Preetham C Machado
Jan 3 at 14:36
add a comment |
Just remove %TYPE
in second declaration and everything works, like in this example:
create table test_tbl(col1, error_no) as (select 'PQR', 7 from dual);
declare
type rec is record(col1 varchar2(50), error_no number(3));
type row_tab is table of rec index by binary_integer; -- <-- here don't use rec%type
v_rws row_tab;
procedure p1(rws out row_tab) is
begin
select col1, error_no bulk collect into rws from test_tbl;
end p1;
begin
p1(v_rws);
for i in 1..v_rws.count loop
dbms_output.put_line(v_rws(i).col1);
end loop;
end;
Just remove %TYPE
in second declaration and everything works, like in this example:
create table test_tbl(col1, error_no) as (select 'PQR', 7 from dual);
declare
type rec is record(col1 varchar2(50), error_no number(3));
type row_tab is table of rec index by binary_integer; -- <-- here don't use rec%type
v_rws row_tab;
procedure p1(rws out row_tab) is
begin
select col1, error_no bulk collect into rws from test_tbl;
end p1;
begin
p1(v_rws);
for i in 1..v_rws.count loop
dbms_output.put_line(v_rws(i).col1);
end loop;
end;
answered Jan 3 at 12:44
Ponder StibbonsPonder Stibbons
8,77421519
8,77421519
Thanks for the reply. That %TYPE was included by mistake. Even without that, the other function is throwing error. Note that, the function is a standalone function. When we try to use associative array from standalone function or function from different package, we get wrong type or number of argument error.
– Preetham C Machado
Jan 3 at 14:36
add a comment |
Thanks for the reply. That %TYPE was included by mistake. Even without that, the other function is throwing error. Note that, the function is a standalone function. When we try to use associative array from standalone function or function from different package, we get wrong type or number of argument error.
– Preetham C Machado
Jan 3 at 14:36
Thanks for the reply. That %TYPE was included by mistake. Even without that, the other function is throwing error. Note that, the function is a standalone function. When we try to use associative array from standalone function or function from different package, we get wrong type or number of argument error.
– Preetham C Machado
Jan 3 at 14:36
Thanks for the reply. That %TYPE was included by mistake. Even without that, the other function is throwing error. Note that, the function is a standalone function. When we try to use associative array from standalone function or function from different package, we get wrong type or number of argument error.
– Preetham C Machado
Jan 3 at 14:36
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54018362%2fpls-00306-error-for-associative-array-with-user-created-record%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Can you post the code for PL_TO_SQL1 ?
– SmartDumb
Jan 4 at 7:59