Query conditions and correlation of two pieces of the main table: find out two tables the same conditions of associated data
Want to achieve the result is as shown in the figure below
List the main table following query
Class, name, select a. a. a. and b. teacher
From table 1 on a left join teacher list b a.f id=b. id
Where b. Teacher Chen in 3
CodePudding user response:
Table 1 which field is fid, why don't the query teacher that field,
CodePudding user response: