How to store a list in a db column

后端 未结 6 831
悲哀的现实
悲哀的现实 2020-11-30 19:25

I would like to store an object FOO in a database. Lets say FOO contains three integers and a list of \"Fruits\".

The list can have any len

6条回答
  •  萌比男神i
    2020-11-30 19:48

    You can, but it will likely treated as text, making searching in this column difficult and slow. You're better of using a related table.

提交回复
热议问题