1

I'm a student doing my final year. I am supposed to create a database for my project such that it stores multiple values under a Skills column. For one one user id there can be multiple values in the skills field.

What is the best way to proceed ? I'm supposed to create in Mysql.

user201537
  • 15
  • 2

1 Answers1

1

The best practice would be to use two tables for this purpose.

UserTable:
Id    rest of the appropriate fields
1        ...........
2        ............

SkillSetTable:
id UserTable_id         skillName
1     1                   abcd
2     1                   pqrs
3     1                   hijk
4     1                   lmnop

Here you can use foreign key to point to UserTableid. That way you dont have to bother about number of skills

Mustofa Rizwan
  • 10,215
  • 2
  • 28
  • 43