嗨,我正在尝试这样的条件:
@H_404_1@array("Curriculum.name LIKE" => $array,"Curriculum.surname LIKE" => $array,)
@H_404_1@WHERE ((`Curriculum`.`name` LIKE IN ('%jon%','%x%')) OR (`Curriculum`.`surname` LIKE IN ('%jon%','%x%'))
如何实现这一点的任何想法?
@H_404_1@foreach ($array as $name) {
$conditions['or'][] = array('Curriculum.name LIKE' => "%$name%");
$conditions['or'][] = array('Curriculum.surname LIKE' => "%$name%");
}
原文链接:https://www.f2er.com/php/135308.html