Skip site navigation (1) Skip section navigation (2)

Re: passing array(java) to postgre sql function

From: Markus Schaber <schabi(at)logix-tt(dot)com>
To: bond <kirank174(at)gmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: passing array(java) to postgre sql function
Date: 2006-02-22 09:17:26
Message-ID: (view raw or whole thread)
Lists: pgsql-sql
Hi, Bond,

bond wrote:

> public Object getArray(){
>     ArrayList temp = new ArrayList();
>     temp.add("MMMM");
>     temp.add("NNNN");
>     temp.add("TTTTT");
>     temp.add("QQQQQ");
>     return temp.toArray();
>   }
> After this i am passing   this.getArray() values to database.

As a first guess, have a look at java.sql.Array interface.

And maybe the people on the pgsql-jdbc(at)postgresql(dot)org mailing list know
better. :-)


Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf.     | Software Development GIS

Fight against software patents in EU!

In response to

pgsql-sql by date

Next:From: Richard HuxtonDate: 2006-02-22 09:18:27
Subject: Re: restircting rows
Previous:From: padmanabha konkodiDate: 2006-02-22 09:06:57
Subject: restircting rows

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group