0

I am having some data in ArrayList form. I need to store it in MySQL in a single field. How can i be doing it ? Java defines List in order to store multiple data. So is there any way by which I can go better that List?

2
  • if you are asking for a dataype for storing then mysql does not have Commented Sep 5, 2013 at 8:58
  • 1
    Why in the world would you want to store an array of objects in one field? Commented Sep 5, 2013 at 8:59

1 Answer 1

1

If the objects in the ArrayList are serialisable, you can serialise the ArrayList. There are a variety of formats, such as JSON.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.