Problem Description:
-
Text:
SYNTAX_ERROR, No association between the main table and the secondary table was found. Note that when using temporary tables to join tables, only the filtered fields will be used to join the tables. -
picture:
Key code:
Note: Where the horizontal line is drawn, the associated field of the student master table must be: category_id.
Solution: Official documentation
Add the fields associated with the foreign key of the main table
Summarize:
When querying joint tables, they must be echoed back and forth.
In addition, you need to change the display field: (schema2code generates code, remember that all relevant pages must be changed.)