TP5where查询OR用法和实现不同字段的相同查询条件

$map['from_user|to_user']=session('id');
$list=db('inside_letter')->where($where)->where('to_msg_read=2 OR from_msg_read=2')->where($map)->limit($tol,$limit)->select();

猜你喜欢

转载自blog.csdn.net/zxy15538191283/article/details/83537854