FIND_IN_SET with two strings

前端 未结 3 714
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-27 15:21

I have this EMPLOYEE table of employees list

+-----+---------------+-------------+
| ID  |EMPLOYEE_ID    | SKILLS      |
+-----+---------------+-------------+
|          


        
3条回答
  •  被撕碎了的回忆
    2021-01-27 16:06

    You can try this over join

    DB::table('POSTED_JOB')->leftJoin('EMPLOYEE', function($join){
       $join->on(DB::raw("find_in_set(POSTED_JOB.JOB_SKILLSmEMPLOYEE.SKILLS)"));
    });
    

提交回复
热议问题