Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to store an array in a database

Status
Not open for further replies.

HoMyGod

Programmer
Jul 17, 2000
59
CH
Hi,

I would like to store something like com.objectspace.jgl.Array in a database. Of course, I can not store it as a text field, because some of my array's content are textual. It means that I can not store things like "hello, world" because of the ",".
Is there a way to store a text array so that I can recover the original array with a request? And I would like to store it as a longtext, so that I can access the rows with a search engine...

Thank you
H.
 
You could do that in Oracle with custom data objects and access it with PL/SQL. Or you could make the array implement Serializable and then store it as a java object in the database but you would have to read into a java procedure to access it again.

This is not a typical piece of database functionality.
Wushutwist
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top