• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDBC

 
Chandra Moulee
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
1) How do you store a Vector in a table?
 
Chandra Moulee
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry I havent completed my question by mistake I pressed the submit button.

1) How to store a Vector in a table.

2) How to retrieve a Vector from a table

Thanks

Mouli
 
Maximilian Xavier Stocker
Ranch Hand
Posts: 381
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
However you would like.

There are two options.

1) The better one. Store the values of each element as a new row/tuple.

2) The not so good one. Serialize the whole Vector into a byte array and store it as a BLOB.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mouli,
For the future, note that you can edit your post if that happens again. The edit icon is the white one with a pencil.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic