时间:2021-07-01 10:21:17 帮助过:18人阅读
$idss = '3,2,7,5';
$re = $db->findall('select id,title from aaa where id in('.$idss.')');
foreach($re as $list){
echo $list['id'].',';
}
$re = $db->findall("select id,title from aaa where id in($idss) order by fiind_in_set(id, '$idsd')");
$re = $db->findall("select id,title from table where find_in_set(id, ".$idss.")");