Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8228541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:29:30+00:00 2026-06-07T16:29:30+00:00

This question is a part of my question how to pass javascript array to

  • 0

This question is a part of my question how to pass javascript array to oracle store procedure by ado parameter object

I think divide it to 3 small parts will get answer faster.

For this question.

I know we can declare a table type and use

select last_name 
from employees in (select * from table(cast(my_table_type_var as my_table_type));

but I always get error from create new package which include a procedure has this. and I read some thread said I need to declear a sql(in schema) type because sql and pl/slq are not using same engine. I try create type in schema by spl*plus, but still get same errors
so I need a working package example for this first please.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T16:29:33+00:00Added an answer on June 7, 2026 at 4:29 pm

    You need a SQL object to call the TABLE operator from a SELECT. Here’s a small example (9iR2):

    SQL> CREATE TYPE table_number is TABLE OF NUMBER;
      2  /
    
    Type created.
    
    SQL> SELECT * FROM TABLE(table_number(1,2,3));
    
    COLUMN_VALUE
    ------------
               1
               2
               3
    

    You can use a function here instead (note that my TYPE is still defined outside the package):

    SQL> CREATE OR REPLACE PACKAGE pkg AS
      2     FUNCTION f RETURN table_number;
      3  END;
      4  /
    
    Package created.
    
    SQL> CREATE OR REPLACE PACKAGE BODY pkg AS
      2     FUNCTION f RETURN table_number IS
      3     BEGIN
      4        RETURN table_number(4,5,6);
      5     END;
      6  END;
      7  /
    
    Package body created.
    
    SQL> SELECT * FROM table(pkg.f);
    
    COLUMN_VALUE
    ------------
               4
               5
               6
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a question about dependency injection. When constructing a service object, we pass
This question is extended part of my previous question, Finding number position in string
Note: all the quotation marks in this question are actually part of the code.
This question has two parts. Part 1. Yesterday I had some code which would
The first part of this question is actually a request for confirmation based on
The first part of this question is now its own, here: Analyzing Text for
I have seen this question that talks about getting the last part of a
I was reading this question, but didn't understand some part of the aix's answer
This is a follow up of this question: Puzzle - How to 'colorify' part
This is two part question: I have two stored procedures: sp1 & sp2. If

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.