thinkphp 多表多字段模糊查询怎么实现
2个回答
展开全部
$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();
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询