Home     |     Java    |     Php General    |     Oracle Database    |     Oracle Server  

MS Dynamics CRM 3.0

  •  Setting up and Configuring Microsoft Dynamics CRM 3.0
  •  Managing Security and Information Access
  •  Entity Customization: Concepts and Attributes
  •  Entity Customization: Forms and Views
  •  Entity Customization: Relationships, Custom Entities, and Site Map
  •  Reporting and Analysis
  •  Workflow
  •  Server-Side SDK
  •  Client-Side SDK
  •  Integration with External Applications
  • Cervo Technologies
    The Right Source to Outsource

    Sharepoint Portal Server KB

    Microsoft CRM Info

    WPF Interview Questions

    SilverLight Interview Qs

    Asp.Net 2.0 Interview Qs

    Asp.NET 1.1 FAQs

    Oracle Interview Questions

    SAP Interview Questions

    Oracle Server

    using an Hashtable in a Stored Procedure


    Hi all !
    I have to write a little Stored Procedure which collects Varchars from
    a sessionId and stores them in an Array. (One array for every
    sessionId)
    For example in Java it would be like this:

    Hashtable hash = new Hashtable();

    public addToHash(String sessionId,String value) {
         hash.put(sessionId,value);

    }

    Is it possible to do the same in PL/SQL ? or do I have to write it in
    Java and load it in Oracle ?
    Thanks
    Laura
    On May 10, 8:51 am, Laura <f.marchi@pride.it> wrote:

    You can investigate using VARRAYs or PL/SQL tables.  I'm sure you can
    find examples at www.psoug.org/library.html or in the documentation at
    http://tahiti.oracle.com.

    David Fitzjarrell

    -----------------------------------------------Reply-----------------------------------------------

    On 10 Mag, 15:57, "fitzjarr@cox.net" <fitzjarr@cox.net> wrote:

    thanks, I'll look for it..........

    -----------------------------------------------Reply-----------------------------------------------
    On May 10, 11:42 am, Laura <f.marchi@pride.it> wrote:

    Also look at DBMS_CRYPTO package for hashing function.

    -----------------------------------------------Reply-----------------------------------------------

    Hello Laura,

    you could try something like this:

    subtype tvalue is varchar2(1000);
    type thash is table of tvalue index by varchar2;
    hashtab thash;

    procedure addtohash(sessionid in varchar2, value in varchar2) is
    begin
      hashtab(sessionid) := value;
    end addtohash;

    For this to work, you need at least Oracle 9.2.
    Since I'm writing this from memory, the syntax may need slight corrections.

    Hope that helps,
    Lothar

    --
    Lothar Armbrster  | lothar.armbrues@t-online.de
    Hauptstr. 26       |
    65346 Eltville     |

    Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc