Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / May 2004

Tip: Looking for answers? Try searching our database.

PostgreSQL Array & Java

Thread view: 
Frederik - 30 May 2004 23:49 GMT
Hi all,

I have a table that contains an array as one of its fields. When I'm
returning some results from the database (including that particular
field), the array is returned as a String. The thing is: I need an
array of Strings, not just one String.

My question: can PostgreSQL return an array of Strings or can it only
return a string. If it can only return one String, what would be the
best way to parse it in order to get the separate elements of the
array?

I hope I'm missing something simple here :o

Thans for your time,
Frederik
Roedy Green - 30 May 2004 23:58 GMT
>My question: can PostgreSQL return an array of Strings or can it only
>return a string. If it can only return one String, what would be the
>best way to parse it in order to get the separate elements of the
>array?

for a list of the data types it supports, including arrays, see
http://mindprod.com/jgloss/postgresql.html

Signature

Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.