Suppose you need to put a list of users in the database field, for this, you probably need to use an array with delimiters.

But how to add to this list, and delete one id ?

  • 2
    See "normal forms" in any relational database tutorial. In short, the array with delimiters is the wrong way and it will not give you anything other than brakes for mysql and a lot of headaches. - Fine
  • make one-to-many communication, enter user id not in one field with a separator, but refer to the second table with these id - madfan41k
  • Here is a similar question with a great answer. Stackoverflow.com/questions/853484/… - fedornabilkin

0