Hello. Is it possible to save an array of data (Java) in MySQL?
If possible, how?
Hello. Is it possible to save an array of data (Java) in MySQL?
If possible, how?
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 | ------------ Source: https://ru.stackoverflow.com/questions/518867/
All Articles