What datatype to use MySQL to save List
ArrayList
? I must write:
使用MySQL保存List ArrayList的数据类型是什么?我必须写:
private List<Exercise> favoriteExerciesList;
1 个解决方案
#1
The datatype Exercise
would map to a database table. Each attribute of Exercise
would map to a column in the table. So a list of Exercises
would be multiple row in the exercise table.
数据类型Exercise将映射到数据库表。 Exercise的每个属性都将映射到表中的一列。因此,练习列表中的练习列表将是多行。
#1
The datatype Exercise
would map to a database table. Each attribute of Exercise
would map to a column in the table. So a list of Exercises
would be multiple row in the exercise table.
数据类型Exercise将映射到数据库表。 Exercise的每个属性都将映射到表中的一列。因此,练习列表中的练习列表将是多行。