时间:2021-07-01 10:21:17 帮助过:26人阅读
Thinkphp中,
$infoWhere[‘userIds‘] = array(‘like‘,array(‘%,‘.$cur_id,‘%,‘.$cur_id.‘,%‘,$cur_id.‘,%‘,$cur_id),‘OR‘); $events = M(‘calendar_events‘); $list = $events ->where( $infoWhere) ->field(‘id,text,start_date,end_date,details,subject,userIds‘) ->order(‘start_date ‘) ->select();
SQL LIKE操作符 Thinkphp
标签:class text _id logs code ids event end array