designing database tables using JDBC -
I am creating a user table using JDBC and MySQL, each user's permission list that contains the integer value. I am surprised that I should use an array to store these values and then there should be only 1 record for this user in the table, or just create a new table that includes 2 columns Are: User IDs and permissions, and then many records for each user that specify the user name in a column and specify a permissive value in the second column. The second option seems unusable because the permission value is a simple object that is similar to any other object (for example a student and course list, because the course is associated with many other objects such as grades, teacher, etc.) So, it is natural to keep many records in this case), but the first one seems a bit unnatural for me, so if someone experiences these things and I am " Natural "design? Thanks "I do not need this, like I said, the permission is only one integer value (No name or id). I...