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 8348615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T07:44:44+00:00 2026-06-09T07:44:44+00:00

how to do something like simple array in plsql? Better to explain on example.

  • 0

how to do something like simple array in plsql? Better to explain on example.

Let’s see what I have

PROCEDURE MyProcedure(name varchar2 := '', father varchar2 := '', description varchar2 := '') IS 
        BEGIN
            UPDATE BC_ACTIONTYPEGROUP SET
                ColumnName = name,
                ColumnFather = father,
                ColumnDecription = description
            WHERE
                ColumnName = name;
            IF SQL%ROWCOUNT = 0 THEN
                INSERT INTO TableNames  (ColumnName, ColumnFather, ColumnDescription)
                VALUES (name, description, father);
            END IF;
        END;
/
MyProcedure('John',     '', 'Little John has three brothers');
MyProcedure('George',   'YES',  'George is father of John');

and I need something like this

MyProcedure(name=>'John', description=>'Little John has three brothers');
MyProcedure(name=>'George', father=>'YES',  description=>'George is father of John');

Is it possible? Or what is the simplest way how to use something like this in procedure.

I’m fresh student of IT so thanks for any advice.

  • 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-09T07:44:45+00:00Added an answer on June 9, 2026 at 7:44 am

    I am not sure if you are looking for arrays or hash tables (associative arrays).

    Arrays are easy:

    declare
    TYPE names IS VARRAY(6) OF VARCHAR2(20) ;
    name names;
    name names.extend(1);
    begin
    name(1) := 'John Doe';
    end;

    Reference:
    http://docs.oracle.com/cd/B10500_01/appdev.920/a96624/05_colls.htm

    In the case of associative arrays you would have to define a type such as:

    TYPE my_type IS TABLE OF VARCHAR2(256) INDEX BY VARCHAR2(5);
    -- Declare actual associative array using new data type.
    my_array my_type;
    my_key VARCHAR2(5);

    Take a look at this:

    http://javaconfessions.com/2008/08/associative-arrays-hashtables-for-plsql.html

    http://tylermuth.wordpress.com/2008/02/21/plsql-associative-arrays/

    Then follow these steps to pass array to a function or procedure:

    How to use pass an array in PL/SQL function

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple html form that is structured something like this: <form name=test
i have something like: #!/usr/bin/perl use strict; use warnings; use CGI::Simple; use DBI; my
I have a simple menu, something like the following: while(cmd != quit){ cin >>
A really simple shell script question. I have a file with something like this:
I have a simple one level deep vocabulary taxonomy. Something like Vocabulary->Term->Node. What I
I have a simple 2D array of strings and I would like to stuff
Basic C++ class question: I have simple code currently that looks like something like
I need something simple like date , but in seconds since 1970 instead of
I want to implement something simple like /System/Workflows/Sample Workflow with the small addition of
I would like links to be trigger on double click. Something simple like this:

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.