Hello. Is it possible to save an array of data (Java) in MySQL?

If possible, how?

    1 answer 1

    If you really need, you can serialize it ... In general, it is better to write each element in a new row of a table with common IDs for each array.

    arr1 = {1, 2, 3} arr2 = {3, 5, 2, 4, 1} table 'arrays': ----------- ID | value | ------------ 1 | 1 | 1 | 2 | 1 | 3 | 2 | 3 | 2 | 5 | 2 | 2 | 2 | 4 | 2 | 1 | ------------ 
    • Thanks, I will try. - MrTrojan