thinkphp 多表多字段模糊查询怎么实现

2025-05-20 05:58:34
推荐回答(1个)
回答1:

$Model = M('Artist');
    $map['name'] = array('like','thinkphp%');
    $Model
    ->join('think_work ON think_artist.id = think_work.artist_id')
    ->join('think_card ON think_artist.card_id = think_card.id')
    ->where($map)
    ->select();