Friday, November 22, 2024

Re: Join on table query without foreign key association



On November 21, 2024 9:10:10 PM CST, "苏子阔" <zikuosu@gmail.com> wrote:
In my project, I did not use foreign keys such as models ForeignKey. Instead, models were used BigIntegralField to associate with other tables
For example: customer-id=models BigIntegralField() stores the ID field of the customer table
But now what should I do if I want to use a join on query?
For example, TopUp. objects. select_delate ("customer-id").
Please help me,thank you!

No comments:

Post a Comment