Обсуждение: Array ???

Поиск
Список
Период
Сортировка

Array ???

От
andy petrella
Дата:
hi,
I have some array type used in my pg table, those are only string array... but how can i set an array with the jdbc in java ? Something with org.postgresql.jdbc3.Jdbc3Array ? If yes, how to ?

P-L-E-A-S-E

thx all


P.S.    [PreparedStaement].setArray(8, new org.postgresql.jdbc3.Jdbc3Array(...)); //parameters ? wich resultset is the latter one ?
--
/**\_____/**\_____/**\_____/**\_____/**\
]                        Signature :
]                    Andy Petrella
]             Rue dessous l'église, 17
]                      4450 Slins                              
]       mail: andy.petrella@gmail.com
]            <licencié en math, info>
]             dea S.I.G. (2005-2006)
\**/"""""""\**/"""""""\**/"""""""\**/"""""""\**/

Re: Array ???

От
Dave Cramer
Дата:
andy,

You have to implement the array interface on the object you want to store, check the archives for an array implementation

Dave
On 18-Oct-05, at 6:45 PM, andy petrella wrote:

hi,
I have some array type used in my pg table, those are only string array... but how can i set an array with the jdbc in java ? Something with org.postgresql.jdbc3.Jdbc3Array ? If yes, how to ?

P-L-E-A-S-E

thx all


P.S.    [PreparedStaement].setArray(8, new org.postgresql.jdbc3.Jdbc3Array(...)); //parameters ? wich resultset is the latter one ?
--
/**\_____/**\_____/**\_____/**\_____/**\
]                        Signature :
]                    Andy Petrella
]             Rue dessous l'église, 17
]                      4450 Slins                              
]       mail: andy.petrella@gmail.com
]            <licencié en math, info>
]             dea S.I.G. (2005-2006)
\**/"""""""\**/"""""""\**/"""""""\**/"""""""\**/



Dave Cramer
www.postgresintl.com
ICQ #14675561
ph (519 939 0336 )