1. array_pluck();
[
{
id:1,
name:'hello',
},
{
id:2,
name:'hello2',
}
]
array_pluck(array,'name');
返回:['hello','hello2']
2. find_int_set ( );查找某个值是否存在这个二维数组中;
select * from students where find_in_set($type,buy_course);
1. array_pluck();
[
{
id:1,
name:'hello',
},
{
id:2,
name:'hello2',
}
]
array_pluck(array,'name');
返回:['hello','hello2']
2. find_int_set ( );查找某个值是否存在这个二维数组中;
select * from students where find_in_set($type,buy_course);