This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
Help, I am using a vector to insert some data into a database but since a vector is wrapped in brackets, I do not get desired affects. Is there a way of inserting a vector into an Oracle DB without inserting the [] brackets thats comes with a vector. Thanks
steph rinert
Greenhorn
Joined: Oct 31, 2002
Posts: 7
posted
0
ohh and I wanted to insert the entire vector and not have to go though field by field.
If you are writing the Vector into a single column, single row in the database, you could always override the Vector.toString() method to get rid of the brackets:
You can also use the copy constructor just before you write to the database: