There are two tables. The userpic table is an image-uploaded table, and the dynamic table is a user-published dynamic list, the values of the userpic_id field in dynamic correspond to the userpic_id field in the iddynamic table of the userpic table. what can I do to separate the IDs and...
There are two tables. The userpic table is an image-uploaded table, and the dynamic table is a user-published dynamic list. The values of the userpic_id field in dynamic correspond to the IDs of the userpic table.
The userpic_id field in the dynamic table has the following strings: 5, 4, 3, 1, 2.
1. How can I associate each id in the string with the id of the userpic table?
2. How is the Association, one-to-many or many-to-many?
Reply content:
There are two tables. The userpic table is an image-uploaded table, and the dynamic table is a user-published dynamic list. The values of the userpic_id field in dynamic correspond to the IDs of the userpic table.
The userpic_id field in the dynamic table has the following strings: 5, 4, 3, 1, 2.
1. How can I associate each id in the string with the id of the userpic table?
2. How is the Association, one-to-many or many-to-many?
When you query a table, you can directly query the where uid in. one-to-many queries are needed to view more of your project. However, many-to-many management is troublesome.