假设这个人在XYZ大学SELECT uid, name, education_history.name FROM user WHERE uid IN (SELECT uid2 fromfriend where uid1=me()) AND strpos(education_history.name,'XYZ') >0
但遗憾的是,它没有返回任何数据。
SQLSTATE42S02:基本表或视图未找到: 1146表'doctor1.education‘不存在(SQL: select * from education where education.dr_idhasMany作为外键,这里的医生id是外键public function educations(){
return $this->hasMany('App\Models\Education