在数据库中查询以逗号分割的数据

return self::find() ->where(["is_del" => 0, "status" => 1]) ->andWhere('CONCAT(",", `user_category_id`, ",") REGEXP ",('. implode('|', $categoryIds) .
posted @ 2022-01-26 16:56  你的男孩  阅读(341)  评论(0编辑  收藏  举报