Many to many relation

后端 未结 2 1127
余生分开走
余生分开走 2021-01-07 08:33

I have two classes on Parse.com : Image & Data. In Data class, I am saving 3 fields Name,Mobile-number & Occupation. In Image class I\'m saving images.

I hav

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-07 09:03

    I can't exactly tell you the code, but from database perspective, its not a good idea to have tables with many to many relationship. In order to resolve many <-> many relationships, you must break them as below:

    one -> many <- one

    For more info, read this: http://qisql.com/qisql_sqlite_many2many.html

提交回复
热议问题