Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Arrays in Oracle

Re: Arrays in Oracle

From: Connor McDonald <connor_mcdonald_at_yahoo.com>
Date: Fri, 15 Feb 2002 22:08:23 +0000
Message-ID: <3C6D86D7.400C@yahoo.com>


Tomasz Wojcik wrote:
>
> Hi!
> It is possible to store arrays of integer numbers (e.g. like in "c" int
> test[20] ) in Oracle?
> I've tried something like this:
> CREATE TYPE my_array AS VARRAY(300) OF NUMBER(2)
> CREATE TABLE my_table ( XXX my_array).
> And the problem is when I'm trying to insert some data to this table
> from proC/C++ code.
> How should I do this?
> If you have any tips please let me know.
> Best regards
> TomaszW.

insert into my_table values ( my_array(1,2,3,4,5,6) );

or thereabouts

hth
connor

-- 
==============================
Connor McDonald

http://www.oracledba.co.uk

"Some days you're the pigeon, some days you're the statue..."
Received on Fri Feb 15 2002 - 16:08:23 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US