I was just thinking about the following:
I have a table called employees
and also a table called projects
. Every employee
has an id and in the projects
table there is a cell called staffedEmployees
in which I want to store the respective employee IDs. I could just insert the IDs as a string separated by comma like this 1,2,3,4, ...
but this would require more work on the processing side as I would have to retrieve the string, separate it and then work with the array/object. So I was wondering: Can I store something like an array/object of such IDs in the staffedEmployees
cell?
I am working with PHP and SQL/MySQL.